Subject: Re: SIOCAIFADDR vs ifconfig
To: Tomas Berndtsson <>
From: None <>
List: tech-net
Date: 09/24/2001 23:12:03
>Ok. Here's my small test program, which doesn't work. 
>  ./iftest lo0
>should, AFAIK, be the same as: 
>  ifconfig lo0 netmask 

	it worked for me.  i guess your forgot to memset(&ip, 0, sizeof(ip))
	and the behavior of the program is unstable.