Lines Matching refs:eh

1415 brlog_ether_header(struct ether_header *eh)  in brlog_ether_header()  argument
1420 eh->ether_shost[0], eh->ether_shost[1], eh->ether_shost[2], in brlog_ether_header()
1421 eh->ether_shost[3], eh->ether_shost[4], eh->ether_shost[5], in brlog_ether_header()
1422 eh->ether_dhost[0], eh->ether_dhost[1], eh->ether_dhost[2], in brlog_ether_header()
1423 eh->ether_dhost[3], eh->ether_dhost[4], eh->ether_dhost[5], in brlog_ether_header()
1424 ntohs(eh->ether_type)); in brlog_ether_header()
4548 struct ether_header *eh;
4569 eh = mtod(m, struct ether_header *);
4570 switch (eh->ether_type) {
4572 did_sw = in_finalize_cksum(m, sizeof(*eh), csum_flags);
4575 did_sw = in6_finalize_cksum(m, sizeof(*eh), -1, -1, csum_flags);
4899 ether_header_type_is_ip(struct ether_header * eh, bool *is_ipv4)
4904 ether_type = ntohs(eh->ether_type);
4923 struct ether_header *eh;
4932 eh = mtod(*mp, struct ether_header *);
4933 if (!ether_header_type_is_ip(eh, &is_ipv4)) {
5486 struct ether_header *eh;
5518 eh = mtod(m, struct ether_header *);
5520 etypef = ether_type_flag_get(eh->ether_type);
5527 if (eh->ether_type == htons(ETHERTYPE_PAE)) {
5546 if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
5549 bif = bridge_rtlookup_bif(sc, eh->ether_dhost, vlan);
5671 struct ether_header *eh;
5676 eh = mtod(m, struct ether_header *);
5677 etypef = ether_type_flag_get(eh->ether_type);
5681 bif = bridge_rtlookup_bif(sc, eh->ether_dhost, 0);
5710 struct ether_header *eh;
5716 eh = mtod(m, struct ether_header *);
5717 if (!ether_header_type_is_ip(eh, &is_ipv4)) {
5732 sizeof(*eh) + sizeof(struct ip);
5744 did_sw = in_finalize_cksum(m, sizeof(*eh), sw_csum);
5751 sizeof(*eh) + sizeof(struct ip6_hdr);
5763 did_sw = in6_finalize_cksum(m, sizeof(*eh), -1, -1, sw_csum);
7367 struct ether_header *eh;
7389 eh = mtod(m, struct ether_header *);
7390 ea = (struct ether_arp *)(eh + 1);
7845 struct ether_header *eh;
7867 eh = mtod(*data, struct ether_header *);
7868 ea = (struct ether_arp *)(eh + 1);
7895 *eh_p = eh;
7904 struct ether_header * __single eh;
7909 if (!is_valid_arp_packet(data, FALSE, &eh, &ea)) {
7966 struct ether_header * __single eh;
7972 if (!is_valid_arp_packet(data, TRUE, &eh, &ea)) {
7995 mnr->mnr_arp_offset = (char *)ea->arp_sha - (char *)eh;
8116 struct ether_header *eh;
8128 eh = (struct ether_header *)header;
8129 iphdr = (struct ip *)(header + sizeof(*eh));
8139 (const char *)eh->ether_shost);
8195 struct ether_header *eh;
8218 eh = (struct ether_header *)header;
8219 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8220 icmp6 = (struct icmp6_hdr *)(header + sizeof(*eh) + off);
8239 eh = (struct ether_header *)header;
8240 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8241 icmp6 = (struct icmp6_hdr *)(header + sizeof(*eh) + off);
8387 ((uintptr_t)lladdr - (uintptr_t)eh);
8425 struct ether_header *eh;
8433 eh = (struct ether_header *)header;
8434 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8451 struct ether_header *eh;
8463 eh = (struct ether_header *)header;
8464 bcopy(eh->ether_shost, &ether_shost, sizeof(ether_shost));
8465 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8505 struct ether_header *eh;
8511 eh = mtod(m, struct ether_header *);
8512 switch (eh->ether_type) {
8534 eh = mtod(m, struct ether_header *);
8536 bcopy(mne->mne_mac, eh->ether_dhost,
8537 sizeof(eh->ether_dhost));
8754 struct ether_header *eh;
8760 eh = mtod(*data, struct ether_header *);
8763 mnr->mnr_ether_type = eh->ether_type;
8765 switch (eh->ether_type) {
8923 struct ether_header *eh;
8926 eh = mtod(*data, struct ether_header *);
8927 bcopy(eaddr, eh->ether_shost, sizeof(eh->ether_shost));
9510 struct ether_header *eh;
9514 eh = mtod(mc, struct ether_header *);
9515 bcopy(etherbroadcastaddr, eh->ether_dhost, ETHER_ADDR_LEN);
9901 update_mbuf_flags(struct ifnet * ifp, mbuf_t m, struct ether_header * eh)
9904 if ((eh->ether_dhost[0] & 1) == 0) {
9905 if (_ether_cmp(eh->ether_dhost, IF_LLADDR(ifp)) != 0) {
9910 if (_ether_cmp(etherbroadcastaddr, eh->ether_dhost) == 0) {
9983 struct ether_header eh;
10037 bcopy(eh_p, &eh, sizeof(eh));
10039 } else if (bcmp(eh_p, &eh, sizeof(eh)) != 0) {
10045 brlog_ether_header(&eh);
10047 resid = bridge_input_list(sc, ifp, &eh, list,
10057 bcopy(eh_p, &eh, sizeof(eh));
10069 brlog_ether_header(&eh);
10071 resid = bridge_input_list(sc, ifp, &eh, list,