[haiku-bugs] Re: [Haiku] #12235: DHCP OPTION_SERVER_ADDRESS corruption leading to broken DHCP

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Sat, 25 Jul 2015 16:53:59 -0000

#12235: DHCP OPTION_SERVER_ADDRESS corruption leading to broken DHCP
---------------------------------------+----------------------------
Reporter: kallisti5 | Owner: zooey
Type: bug | Status: new
Priority: critical | Milestone: Unscheduled
Component: Network & Internet/IPv4 | Version: R1/Development
Resolution: | Keywords: DHCP
Blocked By: | Blocking:
Has a Patch: 0 | Platform: x86-64
---------------------------------------+----------------------------

Comment (by kallisti5):

(screenshot 2 shows DHCP Server ID as 55.0.0.0 which isn't 192.168.1.1.
My syslogs show server address as the correct 192.168.1.1.

We're casting data (uint8) to in_addr_t to BNetworkAddress
(fServer.SetAddress)

http://xref.plausible.coop/source/xref/haiku/headers/posix/netinet/in.h#23
http://xref.plausible.coop/source/xref/haiku/headers/posix/netinet/in.h#82

os/net/NetworkAddress.h: status_t
SetAddress(in_addr_t address);
os/net/NetworkAddress.h: status_t
SetAddress(const in6_addr& address);
os/net/NetworkInterface.h: void
SetAddress(const BNetworkAddress& address);
os/net/NetworkInterface.h: status_t
SetAddress(

--
Ticket URL: <https://dev.haiku-os.org/ticket/12235#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: