Thank you Alexey!

I looked at the new libpcap and with a little inference, determined that
what I needed to do
was to use the SIOCGIFINDX ioctl to convert an interface name (eth1) to the
interface
number (3 in my case).

I should have realized that there would not be a direct correspondence
between eth1 <--> interface
since there might be other devices (such as ppp) in the mix.

Thanks again,

Mark Z.




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 31, 1999 8:05 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: bind() to an PF_PACKET socket -- can I buy a vowel?


Hello!

>       inside_address.sll_ifindex = 1;                         // desired
> interface is eth1

It is wrong. Please, look at libpcap patches how to make this correctly.
ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/

Alexey Kuznetsov

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to