diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-10 14:59:18 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-10 14:59:18 -0400 |
commit | 741efd6ee2f0defb40def8351d3f5a92fc0ab7c8 (patch) | |
tree | dcc3711c179264f1b74f97aa606907f52a8066a0 /lib/libpcap/libpcap/doc/DLT_ALLOCATE_HOWTO.md | |
parent | 0d0ad219a6366e30e1b1ae41f79c8e10a21ade6d (diff) | |
parent | d7dbd335bfc76ace0a0d3a13a5ba83b7c6734bfc (diff) | |
download | apple_cmds-741efd6ee2f0defb40def8351d3f5a92fc0ab7c8.tar.gz apple_cmds-741efd6ee2f0defb40def8351d3f5a92fc0ab7c8.tar.zst apple_cmds-741efd6ee2f0defb40def8351d3f5a92fc0ab7c8.zip |
Merge branch 'apple'
Diffstat (limited to 'lib/libpcap/libpcap/doc/DLT_ALLOCATE_HOWTO.md')
-rw-r--r-- | lib/libpcap/libpcap/doc/DLT_ALLOCATE_HOWTO.md | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/libpcap/libpcap/doc/DLT_ALLOCATE_HOWTO.md b/lib/libpcap/libpcap/doc/DLT_ALLOCATE_HOWTO.md new file mode 100644 index 0000000..ff77128 --- /dev/null +++ b/lib/libpcap/libpcap/doc/DLT_ALLOCATE_HOWTO.md @@ -0,0 +1,29 @@ +DLT and LINKTYPE allocation +=========================== + +DLT_ types live in pcap/dlt.h. They can be requested by the community on a +First-Come First-Served basis [i.e. https://tools.ietf.org/html/rfc8126#section-4.4 ] +(Although libpcap is not at this time an IETF specification, there have been +some as yet-incomplete efforts to do this). + +The Tcpdump Group prefers to link to an open specification on the new DLT_ +type, but they are available for closed, proprietary projects as well. +In that case, a stable email address suffices so that someone who finds +an unknown DLT_ type can investigate. +We prefer to give out unambiguous numbers, and we try to do it as quickly +as possible, but DLT_USERx is available while you wait. + +Note that DLT_ types are, in theory, private to the capture mechanism and can +in some cases be operating system specific, and so a second set of values, +LINKTYPE_ is allocated for actually writing to pcap files. As much as +possible going forward, the DLT_ and LINKTYPE_ value are identical, however, +this was not always the case. See pcap-common.c. + +The LINKTYPE_ values are not exported, but are in pcap-common.c only. + +DEVELOPER NOTES +--------------- + +When allocating a new DLT_ value, a corresponding value needs to be +added to pcap-common.c. +It is not necessary to copy the comments from dlt.h to pcap-common.c. |