[haiku-bugs] Re: [Haiku] #12208: [Network Kit] DHCP is broken since hrev49401

  • From: "pdziepak" <trac@xxxxxxxxxxxx>
  • Date: Mon, 27 Jul 2015 16:23:44 -0000

#12208: [Network Kit] DHCP is broken since hrev49401
--------------------------------+----------------------------
Reporter: diver | Owner: pulkomandy
Type: bug | Status: new
Priority: normal | Milestone: R1/beta1
Component: Kits/Network Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 12223, 12235
Has a Patch: 0 | Platform: All
--------------------------------+----------------------------

Comment (by pdziepak):

It looks like `BNetworkAddress::SetTo()` and/or constructor may be the
culprit. DHCP client construct fServer with AF_INET, `nullptr` host and
DHCP port (c.f. http://cgit.haiku-
os.org/haiku/tree/src/servers/net/DHCPClient.cpp#n430 ). Then it expects
`SetAddress()` never to fail. However, `SetAddress()` expects address
family to be set properly which may not happen in the insides of `SetTo()`
try to be more smart than they are expected to be. Someone will more free
time will have to investigate this more closely.

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

Other related posts: