I am using libipq for myself at the moment.
SO I can tell you my experiences

On Mon, 2002-03-11 at 00:23, Iman Mayes wrote:
> I have bee trying to find a way to get access to the source MAC address through use 
>of libipq. After looking at sources and docs, all I have found is that there is a 
>hw_addr entry in the ipq_packet_msg struct. I modified the intercept.c program ot 
>print it out, but whenever I do it comes up null. The other entries that intercept.c 
>prints out such as indev_name, hook, etc. have actual information.
> 
> 1 - Am I incorrect in assuming that hw_addr is supposed to be the MAC address? If so 
>where can I get the MAC address from libipq?
Yes it definitely is the hw_addr

> 2 - Does the MAC address get passed through the queue mechanism? if not, how can I 
>get the MAC address to a userspace program using libipq or anything else?
Yes I do receive the address, but of course only when testing with other
computers. (even when I do telnet my_network_card_ip_addr 1111 I do NOT
get an hw_addr).

BTW: I am using the example ip_queue program, which formerly just
accepted any packet. (I took the code and just rewrote the "logic"
behind.

greetings
Lonestar
Martin Maurer

> 
> I am sorry if this has been answered before, but I even tried searching on google 
>and have come up dry. Any help would be greatly appreciated.
> 
> BTW, is there a searchable version of this mailing list?
> 
> Iman Mayes

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to