[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-tech-net
Subject: Re: SIOCAIFADDR vs ifconfig
From: Tomas Berndtsson <tomber () packetfront ! com>
Date: 2001-09-24 14:49:18
[Download RAW message or body]
itojun@iijlab.net writes:
> >Ok. Here's my small test program, which doesn't work.
> >Running:
> > ./iftest lo0 192.168.127.26 255.255.255.0
> >should, AFAIK, be the same as:
> > ifconfig lo0 192.168.127.26 netmask 255.255.255.0
>
> it worked for me. i guess your forgot to memset(&ip, 0, sizeof(ip))
> and the behavior of the program is unstable.
Aah.. yes, now it works much better. Thanks a lot, you've saved my
day. :)
Tomas
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic