help getting external interface address
From: Giacomo (jacum_at_libero.it)
Date: 09/17/05
- Next message: Kasper Dupont: "Re: help getting external interface address"
- Previous message: saravanan.linux_at_gmail.com: "chvt Vs xchvt?"
- Next in thread: Kasper Dupont: "Re: help getting external interface address"
- Reply: Kasper Dupont: "Re: help getting external interface address"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 17 Sep 2005 13:08:00 GMT
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
- Next message: Kasper Dupont: "Re: help getting external interface address"
- Previous message: saravanan.linux_at_gmail.com: "chvt Vs xchvt?"
- Next in thread: Kasper Dupont: "Re: help getting external interface address"
- Reply: Kasper Dupont: "Re: help getting external interface address"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|