*/
#define LINKTYPE_VPP_DISPATCH 280
- #define LINKTYPE_MATCHING_MAX 280 /* highest value in the "matching" range */
+ /*
+ * Broadcom Ethernet switches (ROBO switch) 4 bytes proprietary tagging format.
+ */
+ #define LINKTYPE_DSA_TAG_BRCM 281
+ #define LINKTYPE_DSA_TAG_BRCM_PREPEND 282
+
+ #define LINKTYPE_MATCHING_MAX 282 /* highest value in the "matching" range */
/*
* The DLT_ and LINKTYPE_ values in the "matching" range should be the
/*
* Return the maximum snapshot length for a given DLT_ value.
*
- * For most link-layer types, we use MAXIMUM_SNAPLEN, but for DLT_DBUS,
- * the maximum is 134217728, as per
+ * For most link-layer types, we use MAXIMUM_SNAPLEN.
+ *
+ * For DLT_DBUS, the maximum is 134217728, as per
*
* https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages
+ *
+ * For DLT_EBHSCR, the maximum is 8MB, as per
+ *
+ * https://www.elektrobit.com/ebhscr
*/
u_int
max_snaplen_for_dlt(int dlt)
{
- if (dlt == DLT_DBUS)
+ switch (dlt) {
+
+ case DLT_DBUS:
return 134217728;
- else
+
+ case DLT_EBHSCR:
+ return 8*1024*1024;
+
+ default:
return MAXIMUM_SNAPLEN;
+ }
}
/*