summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--Makefile.in1
-rw-r--r--netdissect.h1
-rw-r--r--print-bcm-li.c128
-rw-r--r--print-udp.c2
-rw-r--r--tests/TESTLIST4
-rw-r--r--tests/bcm-li-v.out352
-rw-r--r--tests/bcm-li.out71
-rw-r--r--tests/bcm-li.pcapbin0 -> 11237 bytes
-rw-r--r--udp.h3
10 files changed, 563 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a65ead1..7ebb4a0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -949,6 +949,7 @@ set(NETDISSECT_SOURCE_LIST_C
print-atalk.c
print-atm.c
print-babel.c
+ print-bcm-li.c
print-beep.c
print-bfd.c
print-bgp.c
diff --git a/Makefile.in b/Makefile.in
index 131f62f8..98cf2190 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -106,6 +106,7 @@ LIBNETDISSECT_SRC=\
print-atm.c \
print-babel.c \
print-beep.c \
+ print-bcm-li.c \
print-bfd.c \
print-bgp.c \
print-bootp.c \
diff --git a/netdissect.h b/netdissect.h
index 1be9c162..d66883cf 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -556,6 +556,7 @@ extern void ascii_print(netdissect_options *, const u_char *, u_int);
extern void atalk_print(netdissect_options *, const u_char *, u_int);
extern void atm_print(netdissect_options *, u_int, u_int, u_int, const u_char *, u_int, u_int);
extern void babel_print(netdissect_options *, const u_char *, u_int);
+extern void bcm_li_print(netdissect_options *, const u_char *, u_int);
extern void beep_print(netdissect_options *, const u_char *, u_int);
extern void bfd_print(netdissect_options *, const u_char *, u_int, u_int);
extern void bgp_print(netdissect_options *, const u_char *, u_int);
diff --git a/print-bcm-li.c b/print-bcm-li.c
new file mode 100644
index 00000000..0233c3cb
--- /dev/null
+++ b/print-bcm-li.c
@@ -0,0 +1,128 @@
+/*
+ * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that: (1) source code distributions
+ * retain the above copyright notice and this paragraph in its entirety, (2)
+ * distributions including binary code include the above copyright notice and
+ * this paragraph in its entirety in the documentation or other materials
+ * provided with the distribution, and (3) all advertising materials mentioning
+ * features or use of this software display the following acknowledgement:
+ * ``This product includes software developed by the University of California,
+ * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
+ * the University nor the names of its contributors may be used to endorse
+ * or promote products derived from this software without specific prior
+ * written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/* \summary: Broadcom LI Printer */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "netdissect-stdinc.h"
+
+#include "netdissect.h"
+#include "addrtoname.h"
+#include "extract.h"
+
+#define BCM_LI_SHIM_LEN 4
+
+static const struct tok bcm_li_direction_values[] = {
+ { 1, "unused" },
+ { 2, "egress" },
+ { 3, "ingress" },
+ { 0, NULL}
+};
+
+#define BCM_LI_PKT_TYPE_UNDECIDED 4
+#define BCM_LI_PKT_TYPE_IPV4 5
+#define BCM_LI_PKT_TYPE_IPV6 6
+#define BCM_LI_PKT_TYPE_ETHERNET 7
+
+static const struct tok bcm_li_pkt_type_values[] = {
+ { BCM_LI_PKT_TYPE_UNDECIDED, "undecided" },
+ { BCM_LI_PKT_TYPE_IPV4, "ipv4" },
+ { BCM_LI_PKT_TYPE_IPV6, "ipv6" },
+ { BCM_LI_PKT_TYPE_ETHERNET, "ethernet" },
+ { 0, NULL}
+};
+
+static const struct tok bcm_li_pkt_subtype_values[] = {
+ { 1, "single VLAN tag" },
+ { 2, "double VLAN tag" },
+ { 3, "untagged" },
+ { 0, NULL}
+};
+
+void
+bcm_li_print(netdissect_options *ndo, const u_char *p, u_int length)
+{
+ u_int shim, direction, pkt_type, pkt_subtype, li_id;
+ const u_char *bp = p;
+
+ ndo->ndo_protocol = "bcm_li";
+ if (length < BCM_LI_SHIM_LEN)
+ goto trunc;
+ ND_TCHECK_LEN(p, BCM_LI_SHIM_LEN);
+ shim = GET_BE_U_4(p);
+
+ direction = (shim >> 29) & 0x7;
+ pkt_type = (shim >> 25) & 0xf;
+ pkt_subtype = (shim >> 22) & 0x7;
+ li_id = shim & 0x3fffff;
+
+ length -= BCM_LI_SHIM_LEN;
+ bp += BCM_LI_SHIM_LEN;
+
+ ND_PRINT("%sBCM-LI-SHIM: direction %s, pkt-type %s, pkt-subtype %s, li-id %u",
+ ndo->ndo_vflag ? "\n " : "",
+ tok2str(bcm_li_direction_values, "unknown", direction),
+ tok2str(bcm_li_pkt_type_values, "unknown", pkt_type),
+ tok2str(bcm_li_pkt_subtype_values, "unknown", pkt_subtype),
+ li_id);
+
+ if (ndo->ndo_vflag) {
+ ND_PRINT("\n ");
+ } else {
+ return;
+ }
+
+ switch (pkt_type) {
+ case BCM_LI_PKT_TYPE_ETHERNET:
+ ether_print(ndo, bp, length, length, NULL, NULL);
+ break;
+ case BCM_LI_PKT_TYPE_IPV4:
+ ip_print(ndo, bp, length);
+ break;
+ case BCM_LI_PKT_TYPE_IPV6:
+ ip6_print(ndo, bp, length);
+ break;
+ case BCM_LI_PKT_TYPE_UNDECIDED:
+
+ /*
+ * Guess IP version from first nibble.
+ */
+ if ((GET_U_1(bp) >> 4) == 4) {
+ ip_print(ndo, bp, length);
+ } else if ((GET_U_1(bp) >> 4) == 6) {
+ ip6_print(ndo, bp, length);
+ } else {
+ ND_PRINT("unknown payload");
+ }
+ break;
+
+ default:
+ break;
+ }
+
+ return;
+trunc:
+ nd_print_trunc(ndo);
+}
+
diff --git a/print-udp.c b/print-udp.c
index 8133cf8a..0f5c8307 100644
--- a/print-udp.c
+++ b/print-udp.c
@@ -691,6 +691,8 @@ udp_print(netdissect_options *ndo, const u_char *bp, u_int length,
(IP_V(ip) == 6) ? 1 : 0);
else if (IS_SRC_OR_DST_PORT(MPLS_LSP_PING_PORT))
lspping_print(ndo, (const u_char *)(up + 1), length);
+ else if (sport == BCM_LI_PORT)
+ bcm_li_print(ndo, (const u_char *)(up+1), length);
else if (dport == BFD_CONTROL_PORT ||
dport == BFD_MULTIHOP_PORT ||
dport == BFD_LAG_PORT ||
diff --git a/tests/TESTLIST b/tests/TESTLIST
index 150effb9..6f79ad6f 100644
--- a/tests/TESTLIST
+++ b/tests/TESTLIST
@@ -39,6 +39,10 @@ brcmtag brcm-tag.pcap brcm-tag.out
brcmtag-e brcm-tag.pcap brcm-tag-e.out -e
brcmtagprepend brcm-tag-prepend.pcap brcm-tag-prepend.out -e
+# Broadcom LI
+bcm-li bcm-li.pcap bcm-li.out
+bcm-li-v bcm-li.pcap bcm-li-v.out -v
+
# Marvell DSA tag tests
dsa dsa.pcap dsa.out
dsa-e dsa.pcap dsa-e.out -e
diff --git a/tests/bcm-li-v.out b/tests/bcm-li-v.out
new file mode 100644
index 00000000..bbfb1569
--- /dev/null
+++ b/tests/bcm-li-v.out
@@ -0,0 +1,352 @@
+ 1 07:58:19.865946 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 70)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ unknown payload
+ 2 07:58:21.884122 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 98)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 57427, offset 0, flags [DF], proto UDP (17), length 66)
+ 9.182.64.0.36264 > 217.89.31.49.53: 44388+ A? iperf3.xlab.t-iot.de. (38)
+ 3 07:58:21.884291 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 98)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 57428, offset 0, flags [DF], proto UDP (17), length 66)
+ 9.182.64.0.36264 > 217.89.31.49.53: 15746+ AAAA? iperf3.xlab.t-iot.de. (38)
+ 4 07:58:21.886344 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 205)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 22283, offset 0, flags [none], proto UDP (17), length 143)
+ 217.89.31.49.53 > 9.182.64.0.36264: 44388* 1/1/2 iperf3.xlab.t-iot.de. A 217.89.31.229 (115)
+ 5 07:58:21.886389 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 217)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 22284, offset 0, flags [none], proto UDP (17), length 155)
+ 217.89.31.49.53 > 9.182.64.0.36264: 15746* 1/1/2 iperf3.xlab.t-iot.de. AAAA 2003:4:f007:a01a:217:89:31:229 (127)
+ 6 07:58:21.886872 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 92)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51720, offset 0, flags [DF], proto TCP (6), length 60)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [S], cksum 0x534b (correct), seq 2040003902, win 65340, options [mss 1452,sackOK,TS val 3167220488 ecr 0,nop,wscale 7], length 0
+ 7 07:58:21.889698 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 122)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 0, offset 0, flags [DF], proto TCP (6), length 60)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [S.], cksum 0x2850 (correct), seq 1682249933, ack 2040003903, win 28960, options [mss 1460,sackOK,TS val 1713100238 ecr 3167220488,nop,wscale 9], length 0
+ 8 07:58:21.889745 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51721, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0xc63d (correct), ack 1, win 511, options [nop,nop,TS val 3167220490 ecr 1713100238], length 0
+ 9 07:58:21.889750 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 121)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51722, offset 0, flags [DF], proto TCP (6), length 89)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0xf6de (correct), seq 1:38, ack 1, win 511, options [nop,nop,TS val 3167220490 ecr 1713100238], length 37
+ 10 07:58:21.891444 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 114)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58009, offset 0, flags [DF], proto TCP (6), length 52)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [.], cksum 0xc7db (correct), ack 38, win 57, options [nop,nop,TS val 1713100241 ecr 3167220490], length 0
+ 11 07:58:21.891451 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 115)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58010, offset 0, flags [DF], proto TCP (6), length 53)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0xbed2 (correct), seq 1:2, ack 38, win 57, options [nop,nop,TS val 1713100241 ecr 3167220490], length 1
+ 12 07:58:21.891455 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51723, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0xc612 (correct), ack 2, win 511, options [nop,nop,TS val 3167220492 ecr 1713100241], length 0
+ 13 07:58:21.891458 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 88)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51724, offset 0, flags [DF], proto TCP (6), length 56)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0xc57f (correct), seq 38:42, ack 2, win 511, options [nop,nop,TS val 3167220493 ecr 1713100241], length 4
+ 14 07:58:21.934258 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 114)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58011, offset 0, flags [DF], proto TCP (6), length 52)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [.], cksum 0xc7a8 (correct), ack 42, win 57, options [nop,nop,TS val 1713100284 ecr 3167220493], length 0
+ 15 07:58:21.934313 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 218)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51725, offset 0, flags [DF], proto TCP (6), length 186)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0x8f88 (correct), seq 42:176, ack 2, win 511, options [nop,nop,TS val 3167220535 ecr 1713100284], length 134
+ 16 07:58:21.935738 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 114)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58012, offset 0, flags [DF], proto TCP (6), length 52)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [.], cksum 0xc6f5 (correct), ack 176, win 59, options [nop,nop,TS val 1713100285 ecr 3167220535], length 0
+ 17 07:58:21.935753 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 115)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58013, offset 0, flags [DF], proto TCP (6), length 53)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0xbcec (correct), seq 2:3, ack 176, win 59, options [nop,nop,TS val 1713100285 ecr 3167220535], length 1
+ 18 07:58:21.935941 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51726, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0xc52e (correct), ack 3, win 511, options [nop,nop,TS val 3167220537 ecr 1713100285], length 0
+ 19 07:58:21.935949 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 98)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 57438, offset 0, flags [DF], proto UDP (17), length 66)
+ 9.182.64.0.38748 > 217.89.31.49.53: 55721+ A? iperf3.xlab.t-iot.de. (38)
+ 20 07:58:21.935953 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 98)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 57439, offset 0, flags [DF], proto UDP (17), length 66)
+ 9.182.64.0.38748 > 217.89.31.49.53: 17081+ AAAA? iperf3.xlab.t-iot.de. (38)
+ 21 07:58:21.938124 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 205)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 22288, offset 0, flags [none], proto UDP (17), length 143)
+ 217.89.31.49.53 > 9.182.64.0.38748: 55721* 1/1/2 iperf3.xlab.t-iot.de. A 217.89.31.229 (115)
+ 22 07:58:21.938140 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 217)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 22289, offset 0, flags [none], proto UDP (17), length 155)
+ 217.89.31.49.53 > 9.182.64.0.38748: 17081* 1/1/2 iperf3.xlab.t-iot.de. AAAA 2003:4:f007:a01a:217:89:31:229 (127)
+ 23 07:58:21.938469 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 70)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 46854, offset 0, flags [DF], proto UDP (17), length 32)
+ 9.182.64.0.45432 > 217.89.31.229.50003: UDP, length 4
+ 24 07:58:21.940595 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 108)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 49957, offset 0, flags [DF], proto UDP (17), length 32)
+ 217.89.31.229.50003 > 9.182.64.0.45432: UDP, length 4
+ 25 07:58:21.940607 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 115)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58014, offset 0, flags [DF], proto TCP (6), length 53)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0xc5e4 (correct), seq 3:4, ack 176, win 59, options [nop,nop,TS val 1713100290 ecr 3167220537], length 1
+ 26 07:58:21.940744 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51727, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0xc523 (correct), ack 4, win 511, options [nop,nop,TS val 3167220542 ecr 1713100290], length 0
+ 27 07:58:21.942383 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 115)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58015, offset 0, flags [DF], proto TCP (6), length 53)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0xc4dc (correct), seq 4:5, ack 176, win 59, options [nop,nop,TS val 1713100292 ecr 3167220542], length 1
+ 28 07:58:21.942555 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51728, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0xc51e (correct), ack 5, win 511, options [nop,nop,TS val 3167220544 ecr 1713100292], length 0
+ 29 07:58:24.994569 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 70)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ unknown payload
+ 30 07:58:31.941428 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 85)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51729, offset 0, flags [DF], proto TCP (6), length 53)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0x9a07 (correct), seq 176:177, ack 5, win 511, options [nop,nop,TS val 3167230542 ecr 1713100292], length 1
+ 31 07:58:31.943351 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 115)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58016, offset 0, flags [DF], proto TCP (6), length 53)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0x6bba (correct), seq 5:6, ack 177, win 59, options [nop,nop,TS val 1713110292 ecr 3167230542], length 1
+ 32 07:58:31.943375 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51730, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0x76fc (correct), ack 6, win 511, options [nop,nop,TS val 3167230544 ecr 1713110292], length 0
+ 33 07:58:31.943457 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 88)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51731, offset 0, flags [DF], proto TCP (6), length 56)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0x75d1 (correct), seq 177:181, ack 6, win 511, options [nop,nop,TS val 3167230544 ecr 1713110292], length 4
+ 34 07:58:31.986337 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 114)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58017, offset 0, flags [DF], proto TCP (6), length 52)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [.], cksum 0x7890 (correct), ack 181, win 59, options [nop,nop,TS val 1713110336 ecr 3167230544], length 0
+ 35 07:58:31.986588 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 371)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51732, offset 0, flags [DF], proto TCP (6), length 339)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0x2327 (correct), seq 181:468, ack 6, win 511, options [nop,nop,TS val 3167230588 ecr 1713110336], length 287
+ 36 07:58:31.987833 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 114)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58018, offset 0, flags [DF], proto TCP (6), length 52)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [.], cksum 0x7741 (correct), ack 468, win 61, options [nop,nop,TS val 1713110338 ecr 3167230588], length 0
+ 37 07:58:31.988009 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 118)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58019, offset 0, flags [DF], proto TCP (6), length 56)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0x7617 (correct), seq 6:10, ack 468, win 61, options [nop,nop,TS val 1713110338 ecr 3167230588], length 4
+ 38 07:58:31.988224 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51733, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0x757a (correct), ack 10, win 511, options [nop,nop,TS val 3167230589 ecr 1713110338], length 0
+ 39 07:58:31.989654 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 401)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58020, offset 0, flags [DF], proto TCP (6), length 339)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [P.], cksum 0x7388 (correct), seq 10:297, ack 468, win 61, options [nop,nop,TS val 1713110339 ecr 3167230589], length 287
+ 40 07:58:31.989815 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51734, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0x745a (correct), ack 297, win 509, options [nop,nop,TS val 3167230591 ecr 1713110339], length 0
+ 41 07:58:31.990893 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 85)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51735, offset 0, flags [DF], proto TCP (6), length 53)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [P.], cksum 0x6451 (correct), seq 468:469, ack 297, win 509, options [nop,nop,TS val 3167230591 ecr 1713110339], length 1
+ 42 07:58:31.990899 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51736, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [F.], cksum 0x7458 (correct), seq 469, ack 297, win 509, options [nop,nop,TS val 3167230591 ecr 1713110339], length 0
+ 43 07:58:31.992738 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 114)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 58021, offset 0, flags [DF], proto TCP (6), length 52)
+ 217.89.31.229.50003 > 9.182.64.0.51344: Flags [F.], cksum 0x7614 (correct), seq 297, ack 470, win 61, options [nop,nop,TS val 1713110342 ecr 3167230591], length 0
+ 44 07:58:31.992745 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 84)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 51737, offset 0, flags [DF], proto TCP (6), length 52)
+ 9.182.64.0.51344 > 217.89.31.229.50003: Flags [.], cksum 0x7451 (correct), ack 298, win 509, options [nop,nop,TS val 3167230594 ecr 1713110342], length 0
+ 45 07:58:39.024283 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 98)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 58211, offset 0, flags [DF], proto UDP (17), length 66)
+ 9.182.64.0.48091 > 217.89.31.49.53: 45741+ A? iperf3.xlab.t-iot.de. (38)
+ 46 07:58:39.024389 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 98)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 58212, offset 0, flags [DF], proto UDP (17), length 66)
+ 9.182.64.0.48091 > 217.89.31.49.53: 27076+ AAAA? iperf3.xlab.t-iot.de. (38)
+ 47 07:58:39.026369 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 205)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 25040, offset 0, flags [none], proto UDP (17), length 143)
+ 217.89.31.49.53 > 9.182.64.0.48091: 45741* 1/1/2 iperf3.xlab.t-iot.de. A 217.89.31.229 (115)
+ 48 07:58:39.026394 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 217)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 25041, offset 0, flags [none], proto UDP (17), length 155)
+ 217.89.31.49.53 > 9.182.64.0.48091: 27076* 1/1/2 iperf3.xlab.t-iot.de. AAAA 2003:4:f007:a01a:217:89:31:229 (127)
+ 49 07:58:39.027060 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 32748, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 1, length 64
+ 50 07:58:39.028124 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20005, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 1, length 64
+ 51 07:58:39.028667 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 104)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 58213, offset 0, flags [DF], proto UDP (17), length 72)
+ 9.182.64.0.33490 > 217.89.31.49.53: 58760+ PTR? 229.31.89.217.in-addr.arpa. (44)
+ 52 07:58:39.030411 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 229)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 25042, offset 0, flags [none], proto UDP (17), length 167)
+ 217.89.31.49.53 > 9.182.64.0.33490: 58760* 1/1/2 229.31.89.217.in-addr.arpa. PTR iperf3.xlab.t-iot.de. (139)
+ 53 07:58:40.029018 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 32947, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 2, length 64
+ 54 07:58:40.030624 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20253, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 2, length 64
+ 55 07:58:41.029333 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33164, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 3, length 64
+ 56 07:58:41.031600 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20265, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 3, length 64
+ 57 07:58:42.031874 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33200, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 4, length 64
+ 58 07:58:42.033340 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20350, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 4, length 64
+ 59 07:58:43.033048 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33423, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 5, length 64
+ 60 07:58:43.034662 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20439, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 5, length 64
+ 61 07:58:44.033555 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33671, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 6, length 64
+ 62 07:58:44.034828 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20496, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 6, length 64
+ 63 07:58:45.035245 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33820, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 7, length 64
+ 64 07:58:45.037339 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20743, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 7, length 64
+ 65 07:58:46.037016 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33862, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 8, length 64
+ 66 07:58:46.038606 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20757, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 8, length 64
+ 67 07:58:47.038464 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 33934, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 9, length 64
+ 68 07:58:47.040130 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20817, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 9, length 64
+ 69 07:58:48.039521 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 116)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ IP (tos 0x0, ttl 64, id 34121, offset 0, flags [DF], proto ICMP (1), length 84)
+ 9.182.64.0 > 217.89.31.229: ICMP echo request, id 10671, seq 10, length 64
+ 70 07:58:48.041049 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 146)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ PPPoE [ses 0xc3] IP (tos 0x0, ttl 60, id 20978, offset 0, flags [none], proto ICMP (1), length 84)
+ 217.89.31.229 > 9.182.64.0: ICMP echo reply, id 10671, seq 10, length 64
+ 71 07:58:48.862660 IP (tos 0x2,ECT(0), ttl 59, id 0, offset 0, flags [none], proto UDP (17), length 70)
+ 217.89.30.176.49152 > 217.89.29.22.49153:
+ BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ unknown payload
diff --git a/tests/bcm-li.out b/tests/bcm-li.out
new file mode 100644
index 00000000..8b39d227
--- /dev/null
+++ b/tests/bcm-li.out
@@ -0,0 +1,71 @@
+ 1 07:58:19.865946 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 2 07:58:21.884122 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 3 07:58:21.884291 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 4 07:58:21.886344 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 5 07:58:21.886389 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 6 07:58:21.886872 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 7 07:58:21.889698 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 8 07:58:21.889745 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 9 07:58:21.889750 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 10 07:58:21.891444 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 11 07:58:21.891451 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 12 07:58:21.891455 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 13 07:58:21.891458 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 14 07:58:21.934258 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 15 07:58:21.934313 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 16 07:58:21.935738 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 17 07:58:21.935753 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 18 07:58:21.935941 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 19 07:58:21.935949 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 20 07:58:21.935953 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 21 07:58:21.938124 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 22 07:58:21.938140 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 23 07:58:21.938469 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 24 07:58:21.940595 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 25 07:58:21.940607 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 26 07:58:21.940744 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 27 07:58:21.942383 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 28 07:58:21.942555 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 29 07:58:24.994569 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 30 07:58:31.941428 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 31 07:58:31.943351 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 32 07:58:31.943375 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 33 07:58:31.943457 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 34 07:58:31.986337 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 35 07:58:31.986588 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 36 07:58:31.987833 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 37 07:58:31.988009 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 38 07:58:31.988224 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 39 07:58:31.989654 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 40 07:58:31.989815 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 41 07:58:31.990893 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 42 07:58:31.990899 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 43 07:58:31.992738 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 44 07:58:31.992745 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 45 07:58:39.024283 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 46 07:58:39.024389 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 47 07:58:39.026369 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 48 07:58:39.026394 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 49 07:58:39.027060 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 50 07:58:39.028124 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 51 07:58:39.028667 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 52 07:58:39.030411 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 53 07:58:40.029018 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 54 07:58:40.030624 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 55 07:58:41.029333 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 56 07:58:41.031600 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 57 07:58:42.031874 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 58 07:58:42.033340 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 59 07:58:43.033048 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 60 07:58:43.034662 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 61 07:58:44.033555 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 62 07:58:44.034828 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 63 07:58:45.035245 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 64 07:58:45.037339 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 65 07:58:46.037016 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 66 07:58:46.038606 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 67 07:58:47.038464 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 68 07:58:47.040130 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 69 07:58:48.039521 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
+ 70 07:58:48.041049 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction egress, pkt-type ethernet, pkt-subtype double VLAN tag, li-id 66666
+ 71 07:58:48.862660 IP 217.89.30.176.49152 > 217.89.29.22.49153: BCM-LI-SHIM: direction ingress, pkt-type undecided, pkt-subtype double VLAN tag, li-id 66666
diff --git a/tests/bcm-li.pcap b/tests/bcm-li.pcap
new file mode 100644
index 00000000..ca31a9a7
--- /dev/null
+++ b/tests/bcm-li.pcap
Binary files differ
diff --git a/udp.h b/udp.h
index a68c2316..70d3315a 100644
--- a/udp.h
+++ b/udp.h
@@ -161,6 +161,9 @@ struct udphdr {
#ifndef MPLS_LSP_PING_PORT
#define MPLS_LSP_PING_PORT 3503 /* draft-ietf-mpls-lsp-ping-02.txt */
#endif
+#ifndef BCM_LI_PORT
+#define BCM_LI_PORT 49152 /* SDK default */
+#endif
#ifndef BFD_CONTROL_PORT
#define BFD_CONTROL_PORT 3784 /* RFC 5881 */
#endif