vendredi 6 juin 2014

netfilter's function nfq_get_outdev_name()


Vote count:

0




I'm trying to figure out what the interface of a packet is using Netfilter linux library on Ubuntu 12.04. One of my interfaces is a LAN (eth0), and the other one is connected to a router (that I've set up a NAT for; shown as eth1 by ifconfig) with a USB-LAN adapter. The problem is that inside my code, the nfq_get_outdev_name() function return -1 for the eth1, and shows null (as opposed to eth1) for the name! But it works for the eth0. Where is the problem? I'm wondering if there is a way to identify if it is "eth1".


Note: Function "nfq_get_outdev" which is the father function of nfq_get_outdev_name() shows 6, which seems reasonable.



asked 37 secs ago






Aucun commentaire:

Enregistrer un commentaire