case TYPE_MC_AAL5:
case TYPE_MC_ATM:
case TYPE_MC_HDLC:
+ case TYPE_MC_RAW_CHANNEL:
+ case TYPE_MC_RAW:
+ case TYPE_MC_AAL2:
+ case TYPE_COLOR_MC_HDLC_POS:
packet_len += 4; /* MC header */
break;
break;
case TYPE_IPV4:
+ case TYPE_IPV6:
packet_len = ntohs(header->wlen);
caplen = rlen - dag_record_size;
if (caplen > packet_len) {
}
break;
+ /* These types have no matching 'native' DLT, but can be used with DLT_ERF above */
+ case TYPE_MC_RAW:
+ case TYPE_MC_RAW_CHANNEL:
+ case TYPE_IP_COUNTER:
+ case TYPE_TCP_FLOW_COUNTER:
+ case TYPE_INFINIBAND:
+ case TYPE_RAW_LINK:
+ case TYPE_INFINIBAND_LINK:
default:
/* Unhandled ERF type.
* Ignore rather than generating error
break;
case TYPE_IPV4:
+ case TYPE_IPV6:
if(!p->linktype)
p->linktype = DLT_RAW;
break;
case TYPE_IP_COUNTER:
case TYPE_TCP_FLOW_COUNTER:
case TYPE_INFINIBAND:
- case TYPE_IPV6:
+ case TYPE_RAW_LINK:
+ case TYPE_INFINIBAND_LINK:
default:
/* Libpcap cannot deal with these types yet */
- /* Add no DLTs, but still covered by DLT_ERF */
+ /* Add no 'native' DLTs, but still covered by DLT_ERF */
break;
} /* switch */
#define TYPE_IPV6 23
#endif
+#ifndef TYPE_RAW_LINK
+#define TYPE_RAW_LINK 24
+#endif
+
+#ifndef TYPE_INFINIBAND_LINK
+#define TYPE_INFINIBAND_LINK 25
+#endif
+
#ifndef TYPE_PAD