Skip to contentSkip to conversation

obtain external network interface address

DISCUSSION Giacomo 1 participant 1 message Sep 17, 2005 netfilter

lore
Share & tools
lore

Giacomo

author
#0 lore raw

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

Thanks.

Giacomo