missing elements from pcap?
- by Matthew
When I check the attributes available to the module pcap, I expect to see something like
'DLT_AIRONET_HEADER',
'DLT_APPLE_IP_OVER_IEEE1394',
'DLT_ARCNET', 'DLT_ARCNET_LINUX',
'DLT_ATM_CLIP', 'DLT_ATM_RFC1483',
'DLT_AURORA', 'DLT_AX25', 'DLT_CHAOS',
'DLT_CISCO_IOS', 'DLT_C_HDLC',
'DLT_DOCSIS', 'DLT_ECONET',
'DLT_EN10MB', 'DLT_EN3MB', 'DLT_ENC',
'DLT_FDDI', 'DLT_FRELAY',
'DLT_IEEE802', 'DLT_IEEE802_11',
'DLT_IEEE802_11_RADIO',
'DLT_IEEE802_11_RADIO_AVS',
'DLT_IPFILTER', 'DLT_IP_OVER_FC',
'DLT_JUNIPER_ATM1',
'DLT_JUNIPER_ATM2', 'DLT_JUNIPER_ES',
'DLT_JUNIPER_GGSN', 'DLT_JUNIPER_MFR',
'DLT_JUNIPER_MLFR',
'DLT_JUNIPER_MLPPP',
'DLT_JUNIPER_MONITOR',
'DLT_JUNIPER_SERVICES',
'DLT_LINUX_IRDA', 'DLT_LINUX_SLL',
'DLT_LOOP', 'DLT_LTALK', 'DLT_NULL',
'DLT_PFLOG', 'DLT_PPP',
'DLT_PPP_BSDOS', 'DLT_PPP_ETHER',
'DLT_PPP_SERIAL', 'DLT_PRISM_HEADER',
'DLT_PRONET', 'DLT_RAW', 'DLT_RIO',
'DLT_SLIP', 'DLT_SLIP_BSDOS',
'DLT_SUNATM', 'DLT_SYMANTEC_FIREWALL',
'DLT_TZSP', 'builtins', 'doc', 'file',
'name', '_newclass', '_object',
'_pcap', '_swig_getattr',
'_swig_setattr', 'aton', 'dltname',
'dltvalue', 'findalldevs',
'lookupdev', 'lookupnet', 'ntoa',
'pcapObject', 'pcapObjectPtr']
With note on pcapObject. However, all I get when running dir(pcap) is
['DLT_ARCNET', 'DLT_AX25', 'DLT_CHAOS', 'DLT_EN10MB', 'DLT_EN3MB', 'DLT_FDDI', 'DLT_IEEE802', 'DLT_LINUX_SLL', 'DLT_LOOP', 'DLT_NULL', 'DLT_PFLOG', 'DLT_PFSYNC', 'DLT_PPP', 'DLT_PRONET', 'DLT_RAW', 'DLT_SLIP', 'author', 'builtins', 'copyright', 'doc', 'file', 'license', 'name', 'url', 'version', 'bpf', 'dltoff', 'ex_name', 'lookupdev', 'pcap', 'sys']
Noting the lack of pcapObject. Why is this? What could cause this?