That makes the names a bit shorter, and mentions the specific Hilscher
product to which they apply.
off_nl_nosnap = -1;
return;
off_nl_nosnap = -1;
return;
- case DLT_ETHERNET_HILSCHER:
off_mac = 4; /* MAC header is past 4-byte pseudo-header */
off_linktype = 16; /* includes 4-byte pseudo-header */
off_macpl = 18; /* pseudo-header+Ethernet header length */
off_mac = 4; /* MAC header is past 4-byte pseudo-header */
off_linktype = 16; /* includes 4-byte pseudo-header */
off_macpl = 18; /* pseudo-header+Ethernet header length */
off_nl_nosnap = 3; /* 802.3+802.2 */
return;
off_nl_nosnap = 3; /* 802.3+802.2 */
return;
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER_TRANSPARENT:
off_mac = 12; /* MAC header is past 4-byte pseudo-header, preamble, and SFD */
off_linktype = 24; /* includes 4-byte pseudo-header+preamble+SFD */
off_macpl = 26; /* pseudo-header+preamble+SFD+Ethernet header length */
off_mac = 12; /* MAC header is past 4-byte pseudo-header, preamble, and SFD */
off_linktype = 24; /* includes 4-byte pseudo-header+preamble+SFD */
off_macpl = 26; /* pseudo-header+preamble+SFD+Ethernet header length */
switch (linktype) {
case DLT_EN10MB:
switch (linktype) {
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
return gen_ether_linktype(proto);
/*NOTREACHED*/
break;
return gen_ether_linktype(proto);
/*NOTREACHED*/
break;
case Q_RARP:
switch (linktype) {
case DLT_EN10MB:
case Q_RARP:
switch (linktype) {
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
b0 = gen_ehostop(eaddr, Q_OR);
break;
case DLT_FDDI:
b0 = gen_ehostop(eaddr, Q_OR);
break;
case DLT_FDDI:
switch (linktype) {
case DLT_EN10MB:
switch (linktype) {
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
eaddr = pcap_ether_hostton(name);
if (eaddr == NULL)
bpf_error(
eaddr = pcap_ether_hostton(name);
if (eaddr == NULL)
bpf_error(
if ((q.addr == Q_HOST || q.addr == Q_DEFAULT) && q.proto == Q_LINK) {
switch (linktype) {
case DLT_EN10MB:
if ((q.addr == Q_HOST || q.addr == Q_DEFAULT) && q.proto == Q_LINK) {
switch (linktype) {
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
return gen_ehostop(eaddr, (int)q.dir);
case DLT_FDDI:
return gen_fhostop(eaddr, (int)q.dir);
return gen_ehostop(eaddr, (int)q.dir);
case DLT_FDDI:
return gen_fhostop(eaddr, (int)q.dir);
case DLT_ARCNET_LINUX:
return gen_ahostop(abroadcast, Q_DST);
case DLT_EN10MB:
case DLT_ARCNET_LINUX:
return gen_ahostop(abroadcast, Q_DST);
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
return gen_ehostop(ebroadcast, Q_DST);
case DLT_FDDI:
return gen_fhostop(ebroadcast, Q_DST);
return gen_ehostop(ebroadcast, Q_DST);
case DLT_FDDI:
return gen_fhostop(ebroadcast, Q_DST);
/* all ARCnet multicasts use the same address */
return gen_ahostop(abroadcast, Q_DST);
case DLT_EN10MB:
/* all ARCnet multicasts use the same address */
return gen_ahostop(abroadcast, Q_DST);
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
/* ether[0] & 1 != 0 */
return gen_mac_multicast(0);
case DLT_FDDI:
/* ether[0] & 1 != 0 */
return gen_mac_multicast(0);
case DLT_FDDI:
switch (linktype) {
case DLT_EN10MB:
switch (linktype) {
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
/* check for VLAN */
b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
(bpf_int32)ETHERTYPE_8021Q);
/* check for VLAN */
b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
(bpf_int32)ETHERTYPE_8021Q);
case DLT_C_HDLC: /* fall through */
case DLT_EN10MB:
case DLT_C_HDLC: /* fall through */
case DLT_EN10MB:
- case DLT_ETHERNET_HILSCHER:
- case DLT_ETHERNET_HILSCHER_TRANSPARENT:
+ case DLT_NETANALYZER:
+ case DLT_NETANALYZER_TRANSPARENT:
b0 = gen_linktype(ETHERTYPE_MPLS);
break;
b0 = gen_linktype(ETHERTYPE_MPLS);
break;
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and always
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and always
- * with the payload including the FCS.
+ * with the payload including the FCS, as supplied by their
+ * netANALYZER hardware and software.
-#define LINKTYPE_ETHERNET_HILSCHER 240
+#define LINKTYPE_NETANALYZER 240
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and FCS and
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and FCS and
- * with the Ethernet header preceded by 7 bytes of preamble and
- * 1 byte of SFD.
+ * 1 byte of SFD, as supplied by their netANALYZER hardware and
+ * software.
-#define LINKTYPE_ETHERNET_HILSCHER_TRANSPARENT 241
+#define LINKTYPE_NETANALYZER_TRANSPARENT 241
static struct linktype_map {
static struct linktype_map {
/* Linux NetFilter LOG messages */
{ DLT_NFLOG, LINKTYPE_NFLOG },
/* Linux NetFilter LOG messages */
{ DLT_NFLOG, LINKTYPE_NFLOG },
- /* Ethernet with Hilscher pseudo-header */
- { DLT_ETHERNET_HILSCHER, LINKTYPE_ETHERNET_HILSCHER },
+ /* Ethernet with Hilscher netANALYZER pseudo-header */
+ { DLT_NETANALYZER, LINKTYPE_NETANALYZER },
- /* Ethernet with Hilscher pseudo-header and preamble/SFD */
- { DLT_ETHERNET_HILSCHER_TRANSPARENT, LINKTYPE_ETHERNET_HILSCHER_TRANSPARENT },
+ /* Ethernet with Hilscher netANALYZER pseudo-header and with preamble/SFD */
+ { DLT_NETANALYZER_TRANSPARENT, LINKTYPE_NETANALYZER_TRANSPARENT },
DLT_CHOICE(DLT_DVB_CI, "DVB-CI"),
DLT_CHOICE(DLT_JUNIPER_ATM_CEMIC, "Juniper ATM CEMIC"),
DLT_CHOICE(DLT_NFLOG, "Linux netfilter log messages"),
DLT_CHOICE(DLT_DVB_CI, "DVB-CI"),
DLT_CHOICE(DLT_JUNIPER_ATM_CEMIC, "Juniper ATM CEMIC"),
DLT_CHOICE(DLT_NFLOG, "Linux netfilter log messages"),
- DLT_CHOICE(DLT_ETHERNET_HILSCHER, "Ethernet with Hilscher pseudo-header"),
- DLT_CHOICE(DLT_ETHERNET_HILSCHER_TRANSPARENT, "Ethernet with Hilscher pseudo-header and preamble/SFD"),
+ DLT_CHOICE(DLT_NETANALYZER, "Ethernet with Hilscher netANALYZER pseudo-header"),
+ DLT_CHOICE(DLT_NETANALYZER_TRANSPARENT, "Ethernet with Hilscher netANALYZER pseudo-header and with preamble and SFD"),
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and always
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and always
- * with the payload including the FCS.
+ * with the payload including the FCS, as supplied by their
+ * netANALYZER hardware and software.
-#define DLT_ETHERNET_HILSCHER 240
+#define DLT_NETANALYZER 240
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and FCS and
* with the Ethernet header preceded by 7 bytes of preamble and
/*
* Hilscher Gesellschaft fuer Systemautomation mbH link-layer type
* for Ethernet packets with a 4-byte pseudo-header and FCS and
* with the Ethernet header preceded by 7 bytes of preamble and
+ * 1 byte of SFD, as supplied by their netANALYZER hardware and
+ * software.
-#define DLT_ETHERNET_HILSCHER_TRANSPARENT 241
+#define DLT_NETANALYZER_TRANSPARENT 241