Home
last modified time | relevance | path

Searched refs:ether_type (Results 1 – 25 of 670) sorted by relevance

12345678910>>...27

/dports/net/tcpdump/tcpdump-4.99.1/
H A Dprint-sll.c155 u_short ether_type; in sll_print() local
176 switch (ether_type) { in sll_print()
197 ether_type); in sll_print()
203 ether_type); in sll_print()
222 u_short ether_type; in sll_if_print() local
265 switch (ether_type) { in sll_if_print()
339 u_short ether_type; in sll2_print() local
380 ether_type); in sll2_print()
386 ether_type); in sll2_print()
405 u_short ether_type; in sll2_if_print() local
[all …]
H A Dprint-ipoib.c46 uint16_t ether_type; in ipoib_hdr_print() local
48 ether_type = GET_BE_U_2(bp + 40); in ipoib_hdr_print()
51 tok2str(ethertype_values,"Unknown", ether_type), in ipoib_hdr_print()
52 ether_type); in ipoib_hdr_print()
55 tok2str(ethertype_values,"Unknown", ether_type)); in ipoib_hdr_print()
73 u_short ether_type; in ipoib_print() local
98 ether_type = GET_BE_U_2(p + 40); in ipoib_print()
101 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in ipoib_print()
H A Dprint-symantec.c37 nd_uint16_t ether_type; member
49 etype = GET_BE_U_2(sp->ether_type); in symantec_hdr_print()
79 u_short ether_type; in symantec_if_print() local
93 ether_type = GET_BE_U_2(sp->ether_type); in symantec_if_print()
95 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in symantec_if_print()
102 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in symantec_if_print()
/dports/net-mgmt/argus3-clients/argus-clients-3.0.8.3/examples/radump/
H A Dprint-ether.c57 if (ntohs(ep->ether_type) <= ETHERMTU) in ether_hdr_print()
64 if (ntohs(ep->ether_type) <= ETHERMTU) in ether_hdr_print()
84 u_short ether_type; in ether_print() local
100 ether_type = ntohs(ep->ether_type); in ether_print()
106 if (ether_type <= ETHERMTU) { in ether_print()
117 } else if (ether_encap_print(ether_type, p, length, caplen, in ether_print()
146 ether_encap_print(u_short ether_type, const u_char *p, in ether_encap_print() argument
150 *extracted_ether_type = ether_type; in ether_encap_print()
152 switch (ether_type) { in ether_encap_print()
204 ether_type = ntohs(*(u_int16_t *)(p)); in ether_encap_print()
[all …]
/dports/net/tcptrace/tcptrace-508f73a/
H A Dtcpdump.c353 eth_header.ether_type = htons(ETHERTYPE_IP);
357 eth_header.ether_type = htons(ETHERTYPE_IP);
361 eth_header.ether_type = htons(ETHERTYPE_IP);
365 eth_header.ether_type = htons(ETHERTYPE_IP);
369 eth_header.ether_type = htons(ETHERTYPE_IP);
373 eth_header.ether_type = htons(ETHERTYPE_IP);
378 eth_header.ether_type = htons(ETHERTYPE_IP);
382 eth_header.ether_type = htons(ETHERTYPE_IP);
386 eth_header.ether_type = htons(ETHERTYPE_IP);
390 eth_header.ether_type = htons(ETHERTYPE_IP);
[all …]
H A Dsnoop.c195 if ((ntohs(pep->ether_type) == ETHERTYPE_VLAN) && (len >= 4)){ in pread_snoop()
213 pep->ether_type = vlanh.vlan_proto; in pread_snoop()
227 if ((ntohs(pep->ether_type) != ETHERTYPE_IP) && in pread_snoop()
228 (ntohs(pep->ether_type) != ETHERTYPE_IPV6)) { in pread_snoop()
234 ntohs(pep->ether_type)); in pread_snoop()
287 pep->ether_type = htons(ETHERTYPE_IP); in pread_snoop()
307 pep->ether_type = atm_header.type; in pread_snoop()
320 if ((ntohs(pep->ether_type) != ETHERTYPE_IP) && in pread_snoop()
321 (ntohs(pep->ether_type) != ETHERTYPE_IPV6)) { in pread_snoop()
325 ntohs(pep->ether_type)); in pread_snoop()
H A Derf.c177 unsigned short ether_type = 0; in pread_erf() local
217 ether_type = ntohs(((unsigned short *)&record->rec.atm.pload)[3]); in pread_erf()
225 ether_type = ntohs(record->rec.eth.etype); in pread_erf()
236 ether_type = ETHERTYPE_IP; in pread_erf()
239 ether_type = ntohs(((unsigned short *)&record->rec.pos.hdlc)[1]); in pread_erf()
252 if (ether_type != ETHERTYPE_IP && ether_type != ETHERTYPE_IPV6) { in pread_erf()
354 eth_header.ether_type = htons(ETHERTYPE_IP); in is_erf()
/dports/net/packter-agent/PackterAgent-2.5/src/
H A Dpt_datalink.c73 u_int ether_type; in packter_ether() local
83 ether_type = ntohs(ep->ether_type); in packter_ether()
85 if (ether_type == ETHERTYPE_8021Q){ in packter_ether()
87 ether_type = ntohs(ep->ether_type); in packter_ether()
91 switch(ether_type){ in packter_ether()
/dports/net-mgmt/tcpreplay/tcpreplay-4.3.4/src/common/
H A Dflows.c160 uint16_t ether_type = 0; in flow_decode() local
191 ether_type = sll_hdr->sll_protocol; in flow_decode()
201 ether_type = htons(ETHERTYPE_IP); in flow_decode()
203 ether_type = ppp->protocol; in flow_decode()
212 ether_type = hdlc_hdr->protocol; in flow_decode()
217 ether_type = ETHERTYPE_IP; in flow_decode()
219 ether_type = ETHERTYPE_IP6; in flow_decode()
243 ether_type = ntohs(((eth_hdr_t*)(pktdata + l2_len))->ether_type); in flow_decode()
246 while (ether_type == ETHERTYPE_VLAN) { in flow_decode()
263 if (ether_type == ETHERTYPE_IP) { in flow_decode()
[all …]
H A Dget.c136 uint16_t ether_type = ntohs(eth_hdr->ether_type); in get_l2protocol() local
138 while (ether_type == ETHERTYPE_VLAN) { in get_l2protocol()
143 ether_type = ntohs(vlan_hdr->vlan_tpid); in get_l2protocol()
147 return ether_type; /* yes, return it in host byte order */ in get_l2protocol()
233 uint16_t ether_type = ntohs(((eth_hdr_t*)(pktdata + l2_len))->ether_type); in get_l2len() local
236 while (ether_type == ETHERTYPE_VLAN) { in get_l2len()
242 ether_type = ntohs(vlan_hdr->vlan_tpid); in get_l2len()
/dports/net-mgmt/tcptrack/tcptrack-1.4.2/src/
H A Dutil.cc61 vlan_frame = ( ntohs(ethernet->ether_type) == ETHERTYPE_VLAN ); in getnlp()
62 uint16_t ether_type; in getnlp() local
65 ether_type = ntohs(*((uint16_t *)(p + ENET_HEADER_LEN + VLAN_HEADER_LEN - 2))); in getnlp()
67 ether_type = ntohs(ethernet->ether_type); in getnlp()
69 if( ether_type == ETHERTYPE_IP || ether_type == ETHERTYPE_IPV6 ) in getnlp()
/dports/net/nast/nast-0.2.0/
H A Deth.c29 u_short ether_type; in handle_ethernet() local
32 ether_type = ntohs (eptr->ether_type); in handle_ethernet()
34 return ether_type; in handle_ethernet()
H A Darp.c26 u_short ether_type; in handle_ARP() local
30 ether_type = ntohs(eptr->ether_type); in handle_ARP()
32 if (ether_type == ETHERTYPE_ARP) in handle_ARP()
70 else if (eptr->ether_type == ETHERTYPE_REVARP) in handle_ARP()
/dports/net/addrwatch/addrwatch-1.0.2/src/
H A Dparse.c180 uint16_t ether_type; in parse_packet() local
192 ether_type = ntohs(p->ether->ether_type); in parse_packet()
193 if (ether_type == ETHERTYPE_VLAN) { in parse_packet()
197 ether_type = ntohs(*(uint16_t *)(p->pos - 2)); in parse_packet()
200 switch (ether_type) { in parse_packet()
/dports/security/snort3/snort3-3.1.19.0/src/protocols/
H A Dgre.h34 uint16_t ether_type; member
40 { return (ProtocolId)ntohs(ether_type); } in proto()
43 { return ether_type; } in raw_proto()
H A Deth.h41 uint16_t ether_type; member
45 { return (ProtocolId)ntohs(ether_type); } in ethertype()
49 { return ether_type; } in raw_ethertype()
H A Dtoken_ring.h37 uint16_t ether_type; member
41 { return (ProtocolId)ntohs(ether_type); } in ethertype()
45 { return ether_type; } in raw_ethertype()
/dports/net-mgmt/packit/packit-1.8/src/
H A Dprint_capture.c44 if (ehdr->ether_type == htons(ETHERTYPE_IP)) { in print_capture()
92 } else if (ehdr->ether_type == htons(ETHERTYPE_ARP) in print_capture()
93 || ehdr->ether_type == htons(ETHERTYPE_REVARP)) { in print_capture()
96 (ehdr->ether_type == in print_capture()
/dports/net/tcpflow/tcpflow-1.5.0/src/
H A Ddatalink.cpp91 const u_short *ether_type = &eth_header->ether_type; /* where the ether type is located */ in dl_ethernet() local
100 while (ntohs(*ether_type) == ETHERTYPE_VLAN) { in dl_ethernet()
102 ether_type += 2; /* skip past VLAN header (note it skips by 2s) */ in dl_ethernet()
116 switch (ntohs(*ether_type)){ in dl_ethernet()
139 …EBUG(6) ("warning: received ethernet frame with unknown type 0x%x", ntohs(eth_header->ether_type)); in dl_ethernet()
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/m68k/mac/
H A Dconfig.c392 .ether_type = MAC_ETHER_SONIC,
412 .ether_type = MAC_ETHER_SONIC,
424 .ether_type = MAC_ETHER_SONIC,
434 .ether_type = MAC_ETHER_SONIC,
444 .ether_type = MAC_ETHER_MACE,
454 .ether_type = MAC_ETHER_SONIC,
464 .ether_type = MAC_ETHER_SONIC,
570 .ether_type = MAC_ETHER_SONIC,
580 .ether_type = MAC_ETHER_SONIC,
590 .ether_type = MAC_ETHER_MACE,
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/m68k/mac/
H A Dconfig.c392 .ether_type = MAC_ETHER_SONIC,
412 .ether_type = MAC_ETHER_SONIC,
424 .ether_type = MAC_ETHER_SONIC,
434 .ether_type = MAC_ETHER_SONIC,
444 .ether_type = MAC_ETHER_MACE,
454 .ether_type = MAC_ETHER_SONIC,
464 .ether_type = MAC_ETHER_SONIC,
570 .ether_type = MAC_ETHER_SONIC,
580 .ether_type = MAC_ETHER_SONIC,
590 .ether_type = MAC_ETHER_MACE,
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/arch/m68k/mac/
H A Dconfig.c392 .ether_type = MAC_ETHER_SONIC,
412 .ether_type = MAC_ETHER_SONIC,
424 .ether_type = MAC_ETHER_SONIC,
434 .ether_type = MAC_ETHER_SONIC,
444 .ether_type = MAC_ETHER_MACE,
454 .ether_type = MAC_ETHER_SONIC,
464 .ether_type = MAC_ETHER_SONIC,
570 .ether_type = MAC_ETHER_SONIC,
580 .ether_type = MAC_ETHER_SONIC,
590 .ether_type = MAC_ETHER_MACE,
[all …]
/dports/net/py-python-openstackclient/python-openstackclient-5.2.1/openstackclient/tests/unit/network/v2/
H A Dtest_security_group_rule_network.py74 self._security_group_rule.ether_type,
191 'ethertype': self._security_group_rule.ether_type,
223 'ethertype': self._security_group_rule.ether_type,
253 'ethertype': self._security_group_rule.ether_type,
287 'ethertype': self._security_group_rule.ether_type,
317 'ethertype': self._security_group_rule.ether_type,
346 'ethertype': self._security_group_rule.ether_type,
375 'ethertype': self._security_group_rule.ether_type,
898 _security_group_rule.ether_type,
908 _security_group_rule.ether_type,
[all …]
/dports/net/mpich/mpich-3.4.3/modules/ucx/src/uct/tcp/
H A Dtcp_net.c36 short ether_type; in uct_tcp_netif_caps() local
65 ether_type = ifr.ifr_addr.sa_family; in uct_tcp_netif_caps()
67 ether_type = ARPHRD_ETHER; in uct_tcp_netif_caps()
77 switch (ether_type) { in uct_tcp_netif_caps()
/dports/net/tcpview/tcpview-1.0/
H A Ddetail-ether.c79 etherproto_str(ep->ether_type,ADDR_NUMERICAL),
80 etherproto_str(ep->ether_type,0));
97 switch (ntohs(ep->ether_type)) {

12345678910>>...27