From: Guy Harris Date: Fri, 26 Jun 2009 22:29:43 +0000 (-0700) Subject: Add a link-layer type value for Wireless HART. X-Git-Tag: libpcap-1.1.0~144 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/6a39db3ab2de5daa718e0f9b00440b8f7ad673fb Add a link-layer type value for Wireless HART. --- diff --git a/pcap/bpf.h b/pcap/bpf.h index b2b242b6..1c75ae9d 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -867,6 +867,15 @@ struct bpf_version { */ #define DLT_AOS 222 +/* + * Wireless HART (Highway Addressable Remote Transducer) + * From the HART Communication Foundation + * IES/PAS 62591 + * + * From Sam Roberts + */ +#define DLT_WIHART 223 + /* * DLT and savefile link type values are split into a class and diff --git a/savefile.c b/savefile.c index ccb26a45..9efbefb6 100644 --- a/savefile.c +++ b/savefile.c @@ -693,6 +693,15 @@ static const char rcsid[] _U_ = */ #define LINKTYPE_AOS 222 +/* + * Wireless HART (Highway Addressable Remote Transducer) + * From the HART Communication Foundation + * IES/PAS 62591 + * + * From Sam Roberts + */ +#define LINKTYPE_WIHART 223 + static struct linktype_map { int dlt; @@ -1020,6 +1029,9 @@ static struct linktype_map { /* AOS Space Data Link Protocol */ { DLT_AOS, LINKTYPE_AOS }, + /* Wireless HART */ + { DLT_WIHART, LINKTYPE_WIHART }, + { -1, -1 } };