Skip to content

Add all DLT values #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions dlt_genlua.sh
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
107 changes: 107 additions & 0 deletions linktypes.txt
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
Loading