summaryrefslogtreecommitdiff
path: root/pcap_file.3pcap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-07-16 11:13:08 -0700
committerGuy Harris <guy@alum.mit.edu>2018-07-16 11:13:08 -0700
commit04b703adb76af5bade242f22c2b2c557c6ab1161 (patch)
treeeb0f72e90761778fbabb061b5ec92ba2dd386e19 /pcap_file.3pcap
parent118c076517ec8dc19943aaa7567feeb841db4ba8 (diff)
downloadlibpcap-04b703adb76af5bade242f22c2b2c557c6ab1161.tar.gz
Clean up handling of packet types in the cooked mode headers.
They're defined in a header under include/uapi in the Linux kernel source, so they're part of the official kernel API and, at least from what I understand Mr. Torvalds believes, part of the official kernel ABI, so we don't have to worry about the numerical values changing. So: for the SLL header, we just directly htons() them, rather than doing a trivial mapping from PACKET_xxx values to LINUX_SLL_xxx values; for the SLL2 header, we just use them, as they're a one-byte value in both headers, so there's no need to do any byte swapping.
Diffstat (limited to 'pcap_file.3pcap')
0 files changed, 0 insertions, 0 deletions