[tcpdump-workers] Get my own IP

2007-03-23 Thread Luis Martin Garcia
Hello, Im sorry if this is not the correct place to ask but I've been googleing for 3 hours and I can't find a solution. The thing is that I'm writing an application for Linux that creates it's own TCP/IP packets and sends them using a raw socket. To create the packet, I need to know which IP ad

Re: [tcpdump-workers] Get my own IP

2007-03-23 Thread Guy Harris
On Mar 23, 2007, at 3:35 PM, Luis Martin Garcia wrote: Is there any way, using libpcap or not, to get the IP of a network interface in a portable and easy way? With newer versions of libpcap/WinPcap, you could try using pcap_findalldevs() and look for the interface in question on the list