ARP request/reply by Python?

logistix logistix at zworg.com
Sat Nov 23 14:43:32 EST 2002


Brian Lee <senux at senux.com> wrote in message news:<mailman.1038029918.11285.python-list at python.org>...
> Can I read and write ARP packets by Python? I found that 
> type number for IP datagram is 0x0800 and 0x0806 for ARP request/reply
> in ethernet frame header. How can I set type number(0x0806) to ethernet
> frame header in Python socket? Any site link on this?

ARP works at layer 2 and IP works at layer 3.  By the time you're
dealing with sockets its too late to do ARP stuff.

Don't know if there are any Python packages to hit ethernet cards at a
lower level.



More information about the Python-list mailing list