Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 09:54:45 +0100
From:      Bruce M Simpson <bms@spc.org>
To:        Leslie Jackson <int@softhome.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: ioctl & SIOCDIFADDR
Message-ID:  <20020916085445.GA11460@spc.org>
In-Reply-To: <20020916114315.7feb4bac.int@softhome.net>
References:  <20020916114315.7feb4bac.int@softhome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 16, 2002 at 11:43:15AM +0800, Leslie Jackson wrote:
> I can specify an specific IP, say,  "192.168.0.2",  for SIOCDIFADDR to delete.
> But how can i specify this "default address"(said in the netintor(4)) to
> "delete the first address of the interface"?

Try 0.0.0.0. (aka INADDR_ANY).

BMS

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?20020916085445.GA11460>