From 6a39db3ab2de5daa718e0f9b00440b8f7ad673fb Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 26 Jun 2009 15:29:43 -0700 Subject: [PATCH] Add a link-layer type value for Wireless HART. --- pcap/bpf.h | 9 +++++++++ savefile.c | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/pcap/bpf.h b/pcap/bpf.h index b2b242b..1c75ae9 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 ccb26a4..9efbefb 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 } };