Re: ifconfig weirdness due to modification.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Importance: Normal User-agent: SquirrelMail/1.4.6-rc1 On Mon, December 11, 2006 6:36 pm, matt jaffa wrote:
Hi,
I am attempting to include some form of ifconfig.c in my own app. I compile it into a lib and then include it in my main code. When I call main with my args everything is fine the first time. But every time I call it afterwords when it trys to set the IP address of an interface it returns ENOMEM. It is working on the first call everytime no matter what I do, but the second call to it fails on setting the new ip address but everything else gets set correctly: e.x. broadcast, netmask etc.
Why I am including ifconfig in my app is just for fun. Why it is having this weird behavior is probably cause I am doing this weird thing. Anyone possibly might know why this could be happening?
No idea, but Mac OS X is gonna stomp all over your ifconfig changes anyway when configd feels like it. <http://www.afp548.com/article.php?story=20041015131913324> Josh -- Josh Wisenbaker U, U, D, D, L, R, L, R, B, A, Start for your server http://www.afp548.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Josh Wisenbaker