From: "Giacomo" Subject: obtain external network interface address Date: Sat, 17 Sep 2005 14:29:13 +0200 Message-ID: <000c01c5bb83$6bb21530$0300a8c0@giacomino> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Return-path: To: "netfilter devel" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org 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