[haiku-bugs] Re: [Haiku] #12156: netstack: can't configure network anymore

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Sat, 27 Jun 2015 03:55:10 -0000

#12156: netstack: can't configure network anymore
----------------------------------------+---------------------------------
Reporter: jessicah | Owner: axeld
Type: bug | Status: new
Priority: high | Milestone: R1/beta1
Component: Network & Internet/Stack | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 12161, 12164, 12169
Has a Patch: 0 | Platform: All
----------------------------------------+---------------------------------

Comment (by kallisti5):

I'm pretty sure getifaddrs is forming an invalid ifaddrs.. (attached)

I'm now getting a seg. violation here:
http://cgit.haiku-
os.org/haiku/tree/src/kits/network/netresolv/irs/getaddrinfo.c#n1096

{{{
for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next)
}}}

(see contents attached)

Also, I think this is a bug:
http://cgit.haiku-
os.org/haiku/tree/src/kits/network/netresolv/irs/getaddrinfo.c#n1092

We check for == -1 here, but error is anything < 0

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

Other related posts: