Networking Forums

Networking Forums > Computer Networking > Linux Networking > help getting external interface address linux

Reply
Thread Tools Display Modes

help getting external interface address linux

 
 
Giacomo
Guest
Posts: n/a

 
      09-17-2005, 01:08 PM
Good morning, what kernel space function could i use to get the ip address
of the
interface connected to the external Internet?


When i receive a packet, i would like to compare its destination address
with the one
corresponding to the interface connected to the internet, to distinguish
packets that originate from my internal net between those who come from the
internet.

I want it in a general way, such as taken from routing tables, not by
interface name or
other interface properties. In my case external interface would be ppp0, but
in another
system may change, so i would like to get it in a general way.

Thanks.

Giacomo


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall with more than one External interface Mauroreggio@gmail.com Linux Networking 2 06-14-2008 01:14 PM
I have 4 NIC cards on Linux PC, can I assign Ip address to bridge interface? GS Linux Networking 2 02-11-2007 09:57 PM
get ip address of an interface in linux kernel. Giacomo Linux Networking 2 07-07-2005 07:28 AM
Linux API to create logical interface on a physical interface? Zarko Coklin Linux Networking 2 07-18-2004 01:50 AM
Bind an external IP to an internal Interface. Me Windows Networking 2 06-03-2004 04:20 PM



1 2 3 4 5 6 7 8 9 10 11