Date: Wed, 23 Jan 2002 12:47:28 +1000 (EST) From: Andrew <andrew@ugh.net.au> To: freebsd-hackers@freebsd.org Subject: Routing Socket and New Addresses Message-ID: <20020123123040.S88192-100000@starbug.ugh.net.au>
next in thread | raw e-mail | index | archive | help
Hi, I have opened a routing socket and reading from it. When an interface is configured I get a RTM_NEWADDR message. The bit I'm confused with is the struct sockaddr associated with RTA_IFA (that I assumed would hold the IP of the interface) has an sa_family value of AF_IMPLINK. If I cast it to a struct sockaddr_in then s_addr is 0. Is this normal? If so can you get the IP of a newly configured interface from the routing socket? Thanks, Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020123123040.S88192-100000>