Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

need help with libnet_if_addr.c - MAX_IPADDR

From: Jens Grigel <jens.grigel(at)sskm.de>
Date: Sat Jul 26 2003 - 12:04:03 EDT


Hi libnet list,

i have some problems with the latest stable libnet (1.1.0) used by our linux-ha systems (running redhat 8 and 9). The linux heartbeat code (version 1.0.3) relies on libnet to find the hardware adresses of interfaces and broadcasts these for the corresponding ip aliases defined by heartbeat. When heartbeat calls the application which is using libnet the following error is returned:

libnet_open_link_interface: libnet_select_device(): No network interfaces found

My knowledge of C is "very" limited, but i think the problem comes from the limitation to 32 ip adresses per interface, coming from libnet_if_addr where i find #define MAX_IPADDR 32.

I have more than 32 ip adresses on the loopback device, what seems to cause the error. If i reduce the number of ip aliases on the loopback interface to less than 32 everything is fine, but I need about *250* ip addresses on the loopback interface (used for internal communication of the DNS servers).

Is there anybody who can give me some quick hints how to increase the limit with a few changes in the libnet sources?

Any help is appreciated,
Jens Grigel

-- 

-----------------------------------
Citysavingsbank Munich, Germany Organisation - Network and Security Munich, Germany
-----------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com For additional commands, e-mail: libnet-help@securityfocus.com
Received on Sat Jul 26 12:26:17 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library