-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated using dlt_genlua.sh script which generates part of C code for pcap_make_dlt function. Arguments are stored in linktypes.txt file which was generated from the source of http://www.tcpdump.org/linktypes.html WEB page with sed utility.
- Loading branch information
Yury Shvedov
committed
Jul 4, 2017
1 parent
0892d5a
commit 370a0d2
Showing
3 changed files
with
417 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
|
||
for dlt in $@; do | ||
DLT="$(awk '{print toupper($0)}' <<< "$dlt")" | ||
echo '#ifdef DLT_'"$DLT" | ||
echo ' pcap_dlt_set(L, "'"$DLT"'", DLT_'"$DLT"');' | ||
echo '#endif' | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
NULL | ||
EN10MB | ||
AX25 | ||
IEEE802 | ||
ARCNET | ||
SLIP | ||
PPP | ||
FDDI | ||
PPP_SERIAL | ||
PPP_ETHER | ||
ATM_RFC1483 | ||
RAW | ||
C_HDLC | ||
IEEE802_11 | ||
FRELAY | ||
LOOP | ||
LINUX_SLL | ||
LTALK | ||
PFLOG | ||
PRISM_HEADER | ||
IP_OVER_FC | ||
SUNATM | ||
IEEE802_11_RADIO | ||
ARCNET_LINUX | ||
APPLE_IP_OVER_IEEE1394 | ||
MTP2_WITH_PHDR | ||
MTP2 | ||
MTP3 | ||
SCCP | ||
DOCSIS | ||
LINUX_IRDA | ||
USER0 | ||
USER1 | ||
USER2 | ||
USER3 | ||
USER4 | ||
USER5 | ||
USER6 | ||
USER7 | ||
USER8 | ||
USER9 | ||
USER10 | ||
USER11 | ||
USER12 | ||
USER13 | ||
USER14 | ||
USER15 | ||
IEEE802_11_RADIO_AVS | ||
BACNET_MS_TP | ||
PPP_PPPD | ||
GPRS_LLC | ||
GPF_T | ||
GPF_F | ||
LINUX_LAPD | ||
BLUETOOTH_HCI_H4 | ||
USB_LINUX | ||
PPI | ||
IEEE802_15_4 | ||
SITA | ||
ERF | ||
BLUETOOTH_HCI_H4_WITH_PHDR | ||
AX25_KISS | ||
LAPD | ||
PPP_WITH_DIR | ||
C_HDLC_WITH_DIR | ||
FRELAY_WITH_DIR | ||
IPMB_LINUX | ||
IEEE802_15_4_NONASK_PHY | ||
USB_LINUX_MMAPPED | ||
FC_2 | ||
FC_2_WITH_FRAME_DELIMS | ||
IPNET | ||
CAN_SOCKETCAN | ||
IPV4 | ||
IPV6 | ||
IEEE802_15_4_NOFCS | ||
DBUS | ||
DVB_CI | ||
MUX27010 | ||
STANAG_5066_D_PDU | ||
NFLOG | ||
NETANALYZER | ||
NETANALYZER_TRANSPARENT | ||
IPOIB | ||
MPEG_2_TS | ||
NG40 | ||
NFC_LLCP | ||
INFINIBAND | ||
SCTP | ||
USBPCAP | ||
RTAC_SERIAL | ||
BLUETOOTH_LE_LL | ||
NETLINK | ||
BLUETOOTH_LINUX_MONITOR | ||
BLUETOOTH_BREDR_BB | ||
BLUETOOTH_LE_LL_WITH_PHDR | ||
PROFIBUS_DL | ||
PKTAP | ||
EPON | ||
IPMI_HPM_2 | ||
ZWAVE_R1_R2 | ||
ZWAVE_R3 | ||
WATTSTOPPER_DLM | ||
ISO_14443 | ||
RDS | ||
USB_DARWIN | ||
SDLC |
Oops, something went wrong.