From: Guy Harris Date: Sun, 11 Nov 2012 19:53:28 +0000 (-0800) Subject: Add a LINKTYPE_ value for raw InfiniBand. X-Git-Tag: libpcap-1.4.0~23 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/29e3c1af522def2ef35bff4ff779285b711b0d57 Add a LINKTYPE_ value for raw InfiniBand. Add a LINKTYPE_ value and a corresponding DLT_ value for raw InfiniBand. Fix the capitalization of InfiniBand (at least according to the InfiniBand Trade Association's Web site at www.infinibandta.org, it's InterCapped). --- diff --git a/pcap-common.c b/pcap-common.c index 31cf84de..34b076d4 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -841,7 +841,7 @@ #define LINKTYPE_NETANALYZER_TRANSPARENT 241 /* - * IP-over-Infiniband, as specified by RFC 4391. + * IP-over-InfiniBand, as specified by RFC 4391. * * Requested by Petr Sumbera . */ @@ -883,7 +883,14 @@ */ #define LINKTYPE_PFSYNC 246 -#define LINKTYPE_MATCHING_MAX 246 /* highest value in the "matching" range */ +/* + * Raw InfiniBand packets, starting with the Local Routing Header. + * + * Requested by Oren Kladnitsky . + */ +#define LINKTYPE_INFINIBAND 247 + +#define LINKTYPE_MATCHING_MAX 247 /* highest value in the "matching" range */ static struct linktype_map { int dlt; diff --git a/pcap/bpf.h b/pcap/bpf.h index 8bcde7fe..1723bee0 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -1133,7 +1133,7 @@ struct bpf_program { #define DLT_NETANALYZER_TRANSPARENT 241 /* - * IP-over-Infiniband, as specified by RFC 4391. + * IP-over-InfiniBand, as specified by RFC 4391. * * Requested by Petr Sumbera . */ @@ -1175,7 +1175,14 @@ struct bpf_program { #define DLT_PFSYNC 246 #endif -#define DLT_MATCHING_MAX 246 /* highest value in the "matching" range */ +/* + * Raw InfiniBand packets, starting with the Local Routing Header. + * + * Requested by Oren Kladnitsky . + */ +#define DLT_INFINIBAND 247 + +#define DLT_MATCHING_MAX 247 /* highest value in the "matching" range */ /* * DLT and savefile link type values are split into a class and