Home | Trees | Indices | Help |
|
---|
|
1 # $Id: sll.py 23 2006-11-08 15:45:33Z dugsong $ 2 3 """Linux libpcap "cooked" capture encapsulation.""" 4 5 import arp, dpkt, ethernet 68 __hdr__ = ( 9 ('type', 'H', 0), # 0: to us, 1: bcast, 2: mcast, 3: other, 4: from us 10 ('hrd', 'H', arp.ARP_HRD_ETH), 11 ('hlen', 'H', 6), # hardware address length 12 ('hdr', '8s', ''), # first 8 bytes of link-layer header 13 ('ethtype', 'H', ethernet.ETH_TYPE_IP), 14 ) 15 _typesw = ethernet.Ethernet._typesw 1624
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Mar 19 07:50:08 2015 | http://epydoc.sourceforge.net |