Subject: Re: ifconfig and inet
To: Andrew Brown <atatat@atatdot.net>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-users
Date: 07/30/2002 16:12:54
On Tue, Jul 30, 2002 at 10:14:27AM -0400, Andrew Brown wrote:
> >I may have missed something, but what? I ifconfig fxp0 inet 0.0.0.0, then
> >run the program below. ifconfig -a now no longer shows an inet line for
> >fxp0, yet the interface works (can ssh in), so the program must have worked
> >and set the interface. ifconfig -a not showing it makes me wonder if I 
> >missed something anyway. Thoughts?
> 
> don't forget to (a) zero out the struct ifreq first, and (b) set
> sin->sin_len to something sensible.  then ifconfig -a will work.

Great! Thank you,

Patrick