Re: [libdnet-devel] dnet intf: setting inet to 0 under linux 2.4
Status: Abandoned
Brought to you by:
dugsong
From: Thamer Al-H. <tm...@wh...> - 2002-12-31 15:51:56
|
On Sat, 28 Dec 2002, Thamer Al-Harbash wrote: > intf.c:226 > > if (addr_btos(entry->intf_addr.addr_bits, > &ifr.ifr_addr) == 0) { > if (ioctl(intf->fd, SIOCSIFNETMASK, &ifr) < 0) > return (-1); > } if (addr_btos(entry->intf_addr.addr_bits, &ifr.ifr_addr) == 0 && entry->intf_addr.addr_ip != 0) { if (ioctl(intf->fd, SIOCSIFNETMASK,&ifr) < 0) return (-1); } This fixes things btw. An #ifdef __linux__ should fix it. -- Thamer Al-Harbash http://www.whitefang.com/ team dresch made me do it |