From owner-freebsd-hackers Tue Jan 22 18:47:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id E0ABA37B416 for ; Tue, 22 Jan 2002 18:47:32 -0800 (PST) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id EBFF8A842; Wed, 23 Jan 2002 13:47:28 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id E949454F4 for ; Wed, 23 Jan 2002 12:47:28 +1000 (EST) Date: Wed, 23 Jan 2002 12:47:28 +1000 (EST) From: Andrew To: freebsd-hackers@freebsd.org Subject: Routing Socket and New Addresses Message-ID: <20020123123040.S88192-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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