Home
last modified time | relevance | path

Searched refs:eth_hdr (Results 201 – 225 of 728) sorted by relevance

12345678910>>...30

/dports/multimedia/v4l_compat/linux-5.13-rc2/net/netfilter/ipset/
H A Dip_set_hash_ipmac.c97 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac4_kadt()
99 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac4_kadt()
213 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac6_kadt()
215 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac6_kadt()
H A Dip_set_hash_mac.c85 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_mac4_kadt()
87 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_mac4_kadt()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/netfilter/ipset/
H A Dip_set_hash_ipmac.c97 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac4_kadt()
99 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac4_kadt()
213 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac6_kadt()
215 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac6_kadt()
H A Dip_set_hash_mac.c85 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_mac4_kadt()
87 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_mac4_kadt()
/dports/security/nmap/nmap-7.91/libdnet-stripped/src/
H A Deth-linux.c72 struct eth_hdr *eth = (struct eth_hdr *)buf; in eth_send()
/dports/multimedia/libv4l/linux-5.13-rc2/net/netfilter/
H A Dnf_log_syslog.c77 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_arp_packet()
80 ntohs(eth_hdr(skb)->h_proto)); in dump_arp_packet()
785 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv4_mac_header()
788 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
860 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv6_mac_header()
863 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/netfilter/
H A Dnf_log_syslog.c77 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_arp_packet()
80 ntohs(eth_hdr(skb)->h_proto)); in dump_arp_packet()
785 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv4_mac_header()
788 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
860 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv6_mac_header()
863 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/netfilter/
H A Dnf_log_syslog.c77 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_arp_packet()
80 ntohs(eth_hdr(skb)->h_proto)); in dump_arp_packet()
785 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv4_mac_header()
788 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
860 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv6_mac_header()
863 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/bridge/
H A Dbr_cfm.c169 struct ethhdr *eth_hdr; in ccm_frame_build() local
197 eth_hdr = skb_put(skb, sizeof(*eth_hdr)); in ccm_frame_build()
198 ether_addr_copy(eth_hdr->h_dest, tx_info->dmac.addr); in ccm_frame_build()
199 ether_addr_copy(eth_hdr->h_source, mep->config.unicast_mac.addr); in ccm_frame_build()
200 eth_hdr->h_proto = htons(ETH_P_CFM); in ccm_frame_build()
/dports/multimedia/libv4l/linux-5.13-rc2/net/bridge/
H A Dbr_cfm.c169 struct ethhdr *eth_hdr; in ccm_frame_build() local
197 eth_hdr = skb_put(skb, sizeof(*eth_hdr)); in ccm_frame_build()
198 ether_addr_copy(eth_hdr->h_dest, tx_info->dmac.addr); in ccm_frame_build()
199 ether_addr_copy(eth_hdr->h_source, mep->config.unicast_mac.addr); in ccm_frame_build()
200 eth_hdr->h_proto = htons(ETH_P_CFM); in ccm_frame_build()
/dports/net-mgmt/openlldp/openlldp-0.4alpha/src/
H A Drx_sm.c63 struct eth_hdr *ether_hdr; in rxProcessFrame()
64 struct eth_hdr expect_hdr; in rxProcessFrame()
109 ether_hdr = (struct eth_hdr *)&lldp_port->rx.frame[0]; in rxProcessFrame()
166 tlv_hdr = (uint16_t *)&lldp_port->rx.frame[sizeof(struct eth_hdr) + tlv_offset]; in rxProcessFrame()
188 debug_offset = tlv_length + sizeof(struct eth_hdr) + tlv_offset + sizeof(*tlv_hdr); in rxProcessFrame()
202 …tlv_info_string = (uint8_t *)&lldp_port->rx.frame[sizeof(struct eth_hdr) + sizeof(*tlv_hdr) + tlv_… in rxProcessFrame()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/bridge/
H A Dbr_cfm.c169 struct ethhdr *eth_hdr; in ccm_frame_build() local
197 eth_hdr = skb_put(skb, sizeof(*eth_hdr)); in ccm_frame_build()
198 ether_addr_copy(eth_hdr->h_dest, tx_info->dmac.addr); in ccm_frame_build()
199 ether_addr_copy(eth_hdr->h_source, mep->config.unicast_mac.addr); in ccm_frame_build()
200 eth_hdr->h_proto = htons(ETH_P_CFM); in ccm_frame_build()
/dports/emulators/dynamips-community/dynamips-0.2.17/common/
H A Ddev_nm_16esw.c1680 n_eth_hdr_t *eth_hdr = (n_eth_hdr_t *)p->pkt; in bcm5600_src_mac_learning() local
1681 n_eth_addr_t *src_mac = &eth_hdr->saddr; in bcm5600_src_mac_learning()
1805 hash ^= eth_hdr->saddr.eth_addr_byte[i]; in bcm5600_trunk_egress_port()
1806 hash ^= eth_hdr->daddr.eth_addr_byte[i]; in bcm5600_trunk_egress_port()
1831 n_eth_hdr_t *eth_hdr = (n_eth_hdr_t *)p->pkt; in bcm5600_dst_mac_lookup() local
1832 n_eth_addr_t *dst_mac = &eth_hdr->daddr; in bcm5600_dst_mac_lookup()
2096 n_eth_dot1q_hdr_t *eth_hdr; in bcm5600_handle_rx_pkt() local
2109 eth_hdr = (n_eth_dot1q_hdr_t *)p->pkt; in bcm5600_handle_rx_pkt()
2128 if (bcm5600_is_bpdu(&eth_hdr->daddr)) { in bcm5600_handle_rx_pkt()
2185 n_eth_dot1q_hdr_t *eth_hdr; in bcm5600_handle_tx_pkt() local
[all …]
/dports/security/fragroute/fragroute-1.2/
H A Dpkt.c38 pkt->pkt_eth = (struct eth_hdr *)pkt->pkt_data; in pkt_new()
64 (struct eth_hdr *)new->pkt_data : NULL; in pkt_dup()
99 pkt->pkt_eth = (struct eth_hdr *)p; in pkt_decorate()
/dports/net-mgmt/tcpreplay/tcpreplay-4.3.4/src/
H A Dtree.c705 eth_hdr_t *eth_hdr = NULL; in packet2tree() local
719 if (len < (int)sizeof(*eth_hdr)) { in packet2tree()
725 eth_hdr = (eth_hdr_t *) (data); in packet2tree()
728 memcpy(&ether_type, (u_char*)eth_hdr + 12, 2); in packet2tree()
740 memcpy(&ether_type, (u_char*)eth_hdr + 16, 2); in packet2tree()
794 strlcpy((char *)node->mac, (char *)eth_hdr->ether_shost, sizeof(node->mac)); in packet2tree()
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/batman-adv/
H A Drouting.c189 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
359 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
386 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
457 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet()
671 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet()
988 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet()
1193 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
/dports/multimedia/libv4l/linux-5.13-rc2/net/batman-adv/
H A Drouting.c189 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
359 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
386 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
457 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet()
671 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet()
988 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet()
1193 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/batman-adv/
H A Drouting.c189 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
359 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
386 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
457 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet()
671 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet()
988 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet()
1193 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
/dports/net/honeyd/honeyd-1.5c/
H A Ddhcpclient.c405 dhcp_recv_cb(struct eth_hdr *eth, struct ip_hdr *ip, u_short iplen) in dhcp_recv_cb()
462 struct eth_hdr *eth; in _bcast()
476 eth = (struct eth_hdr *)p; in _bcast()
515 struct eth_hdr *eth; in _unicast()
529 eth = (struct eth_hdr *)p; in _unicast()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local
177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3()
392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local
419 memset(&eth_hdr, 0, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove()
441 skb_push(skb, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
445 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix() local
465 memcpy(&eth_hdr, datap, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local
177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3()
392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local
419 memset(&eth_hdr, 0, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove()
441 skb_push(skb, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
445 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix() local
465 memcpy(&eth_hdr, datap, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local
177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3()
392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local
419 memset(&eth_hdr, 0, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove()
441 skb_push(skb, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
445 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix() local
465 memcpy(&eth_hdr, datap, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
[all …]
/dports/games/retroarch/RetroArch-1.9.7/wii/libogc/lwip/netif/skeleton/
H A Dethernetif.c180 struct eth_hdr *ethhdr; in ethernetif_output()
218 struct eth_hdr *ethhdr; in ethernetif_input()
/dports/multimedia/libv4l/linux-5.13-rc2/net/netfilter/ipset/
H A Dip_set_hash_mac.c85 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_mac4_kadt()
87 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_mac4_kadt()
/dports/net/bittwist/bittwist-1.1/src/
H A Dbittwiste.c821 struct ether_header *eth_hdr; in parse_ethernet() local
829 eth_hdr = (struct ether_header *)malloc(ETHER_HDR_LEN); in parse_ethernet()
830 if (eth_hdr == NULL) in parse_ethernet()
834 memcpy(eth_hdr, pkt_data, ETHER_HDR_LEN); in parse_ethernet()
840 memcpy(eth_hdr->ether_dhost, ethopt->ether_old_dhost, ETHER_ADDR_LEN); in parse_ethernet()
843 memcpy(eth_hdr->ether_dhost, ethopt->ether_new_dhost, ETHER_ADDR_LEN); in parse_ethernet()
847 memcpy(eth_hdr->ether_shost, ethopt->ether_old_shost, ETHER_ADDR_LEN); in parse_ethernet()
854 eth_hdr->ether_type = htons(ethopt->ether_type); in parse_ethernet()
856 ether_type = ntohs(eth_hdr->ether_type); in parse_ethernet()
866 memcpy(new_pkt_data, eth_hdr, ETHER_HDR_LEN); in parse_ethernet()
[all …]

12345678910>>...30