]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a LINKTYPE_ value for raw InfiniBand.
authorGuy Harris <[email protected]>
Sun, 11 Nov 2012 19:53:28 +0000 (11:53 -0800)
committerGuy Harris <[email protected]>
Sun, 11 Nov 2012 19:53:28 +0000 (11:53 -0800)
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).

pcap-common.c
pcap/bpf.h

index 31cf84defcc23166a285ad8cb0503f095c352261..34b076d4d60f6d6ad7f90df96d0a00928a765f5e 100644 (file)
 #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 <[email protected]>.
  */
  */
 #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 <[email protected]>.
+ */
+#define LINKTYPE_INFINIBAND    247
+
+#define LINKTYPE_MATCHING_MAX  247             /* highest value in the "matching" range */
 
 static struct linktype_map {
        int     dlt;
index 8bcde7fe5298cdc740732a16c6da31dda7cd19ec..1723bee00a48cfc1bc153b73140b7a73c2a29610 100644 (file)
@@ -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 <[email protected]>.
  */
@@ -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 <[email protected]>.
+ */
+#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