Home
last modified time | relevance | path

Searched refs:arp (Results 1 – 15 of 15) sorted by relevance

/drivers/net/bonding/
A Dbond_alb.c256 hash_index = _simple_hash((u8 *)&(arp->ip_src), sizeof(arp->ip_src)); in rlb_update_entry_from_arp()
275 struct arp_pkt *arp, _arp; in rlb_arp_recv() local
281 if (!arp) in rlb_arp_recv()
294 rlb_purge_src_ip(bond, arp); in rlb_arp_recv()
555 const struct arp_pkt *arp) in rlb_choose_channel() argument
566 hash_index = _simple_hash((u8 *)&arp->ip_dst, sizeof(arp->ip_dst)); in rlb_choose_channel()
606 sizeof(arp->ip_src)); in rlb_choose_channel()
611 client_info->ip_src = arp->ip_src; in rlb_choose_channel()
612 client_info->ip_dst = arp->ip_dst; in rlb_choose_channel()
657 struct arp_pkt *arp; in rlb_arp_xmit() local
[all …]
A Dbond_main.c3239 struct arphdr *arp = (struct arphdr *)skb->data; in bond_arp_rcv() local
3248 arp = kmalloc(alen, GFP_ATOMIC); in bond_arp_rcv()
3249 if (!arp) in bond_arp_rcv()
3251 if (skb_copy_bits(skb, 0, arp, alen) < 0) in bond_arp_rcv()
3255 if (arp->ar_hln != bond->dev->addr_len || in bond_arp_rcv()
3258 arp->ar_hrd != htons(ARPHRD_ETHER) || in bond_arp_rcv()
3259 arp->ar_pro != htons(ETH_P_IP) || in bond_arp_rcv()
3260 arp->ar_pln != 4) in bond_arp_rcv()
3263 arp_ptr = (unsigned char *)(arp + 1); in bond_arp_rcv()
3311 if (arp != (struct arphdr *)skb->data) in bond_arp_rcv()
[all …]
/drivers/net/wireless/intel/iwlwifi/mei/
A Dnet.c85 const struct arphdr *arp; in iwl_mei_rx_filter_arp() local
92 arp = arp_hdr(skb); in iwl_mei_rx_filter_arp()
95 if (arp->ar_hrd != htons(ARPHRD_ETHER) || in iwl_mei_rx_filter_arp()
96 arp->ar_pro != htons(ETH_P_IP)) in iwl_mei_rx_filter_arp()
105 target_ip = (const void *)((const u8 *)(arp + 1) + in iwl_mei_rx_filter_arp()
112 if (arp->ar_op == htons(ARPOP_REQUEST) && in iwl_mei_rx_filter_arp()
125 arp->ar_op == htons(ARPOP_REPLY)) { in iwl_mei_rx_filter_arp()
/drivers/net/wireless/marvell/mwifiex/
A Dsta_rx.c26 const struct mwifiex_arp_eth_header *arp; in mwifiex_discard_gratuitous_arp() local
34 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
35 if (arp->hdr.ar_op == htons(ARPOP_REPLY) || in mwifiex_discard_gratuitous_arp()
36 arp->hdr.ar_op == htons(ARPOP_REQUEST)) { in mwifiex_discard_gratuitous_arp()
37 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp()
/drivers/net/ethernet/mscc/
A Docelot_vcap.c441 struct ocelot_vcap_key_arp *arp = &filter->key.arp; in is2_entry_set() local
445 arp->smac.value, arp->smac.mask); in is2_entry_set()
448 arp->ethernet); in is2_entry_set()
451 arp->ip); in is2_entry_set()
454 arp->length); in is2_entry_set()
457 arp->dmac_match); in is2_entry_set()
463 arp->unknown); in is2_entry_set()
467 (arp->arp == OCELOT_VCAP_BIT_0 ? 2 : 0)); in is2_entry_set()
469 (arp->arp == OCELOT_VCAP_BIT_ANY ? 0 : 2)); in is2_entry_set()
474 arp->dip.value.addr, arp->dip.mask.addr); in is2_entry_set()
[all …]
/drivers/net/arcnet/
A Drfc1201.c209 struct arphdr *arp = (struct arphdr *)soft->payload; in rx() local
212 if (arp->ar_hln == 1 && arp->ar_pln == 4) { in rx()
213 uint8_t *cptr = (uint8_t *)arp + sizeof(struct arphdr); in rx()
227 arp->ar_hln, arp->ar_pln); in rx()
/drivers/net/wireless/ath/ath11k/
A Dwmi.c9635 struct wmi_arp_offload_tuple *arp; in ath11k_wmi_fill_arp_offload() local
9647 arp = (struct wmi_arp_offload_tuple *)buf_ptr; in ath11k_wmi_fill_arp_offload()
9653 arp->flags = WMI_ARPOL_FLAGS_VALID; in ath11k_wmi_fill_arp_offload()
9655 ath11k_ce_byte_swap(arp->target_ipaddr, 4); in ath11k_wmi_fill_arp_offload()
9658 arp->target_ipaddr); in ath11k_wmi_fill_arp_offload()
9661 buf_ptr += sizeof(*arp); in ath11k_wmi_fill_arp_offload()
9859 struct wmi_sta_keepalive_arp_resp *arp; in ath11k_wmi_sta_keepalive() local
9863 len = sizeof(*cmd) + sizeof(*arp); in ath11k_wmi_sta_keepalive()
9878 arp->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_sta_keepalive()
9884 arp->src_ip4_addr = arg->src_ip4_addr; in ath11k_wmi_sta_keepalive()
[all …]
/drivers/net/wireless/ath/ath10k/
A Dwmi-tlv.c2527 struct wmi_sta_keepalive_arp_resp *arp; in ath10k_wmi_tlv_op_gen_sta_keepalive() local
2534 sizeof(*tlv) + sizeof(*arp); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2554 tlv->len = __cpu_to_le16(sizeof(*arp)); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2555 arp = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2557 arp->src_ip4_addr = arg->src_ip4_addr; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2558 arp->dest_ip4_addr = arg->dest_ip4_addr; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2559 ether_addr_copy(arp->dest_mac_addr.addr, arg->dest_mac_addr); in ath10k_wmi_tlv_op_gen_sta_keepalive()
/drivers/net/wireless/ath/ath12k/
A Dwmi.c10476 struct wmi_arp_offload_params *arp; in ath12k_wmi_fill_arp_offload() local
10484 WMI_MAX_ARP_OFFLOADS * sizeof(*arp)); in ath12k_wmi_fill_arp_offload()
10488 arp = buf_ptr; in ath12k_wmi_fill_arp_offload()
10490 sizeof(*arp)); in ath12k_wmi_fill_arp_offload()
10494 arp->flags = cpu_to_le32(WMI_ARPOL_FLAGS_VALID); in ath12k_wmi_fill_arp_offload()
10498 arp->target_ipaddr); in ath12k_wmi_fill_arp_offload()
10501 buf_ptr += sizeof(*arp); in ath12k_wmi_fill_arp_offload()
10618 struct wmi_sta_keepalive_arp_resp_params *arp; in ath12k_wmi_sta_keepalive() local
10624 len = sizeof(*cmd) + sizeof(*arp); in ath12k_wmi_sta_keepalive()
10638 sizeof(*arp)); in ath12k_wmi_sta_keepalive()
[all …]
/drivers/net/ethernet/via/
A Dvia-velocity.c3038 struct arp_packet *arp = (struct arp_packet *) buf; in velocity_set_wol() local
3045 arp->type = htons(ETH_P_ARP); in velocity_set_wol()
3046 arp->ar_op = htons(1); in velocity_set_wol()
3048 memcpy(arp->ar_tip, vptr->ip_addr, 4); in velocity_set_wol()
/drivers/net/ethernet/chelsio/cxgb3/
A Dsge.c2024 struct arphdr *arp; in cxgb3_arp_process() local
2033 arp = arp_hdr(skb); in cxgb3_arp_process()
2035 if (arp->ar_op != htons(ARPOP_REQUEST)) in cxgb3_arp_process()
2038 arp_ptr = (unsigned char *)(arp + 1); in cxgb3_arp_process()
/drivers/net/usb/
A Dsmsc95xx.c1675 const u8 arp[] = {0x08, 0x06}; in smsc95xx_suspend() local
1683 crc[filter/2] |= smsc_crc(arp, 2, filter); in smsc95xx_suspend()
A Dsmsc75xx.c1917 const u8 arp[] = {0x08, 0x06}; in smsc75xx_suspend() local
1921 | smsc_crc(arp, 2); in smsc75xx_suspend()
/drivers/net/wireless/mediatek/mt76/
A Dmt76_connac_mcu.c2268 struct mt76_connac_arpns_tlv arp; in mt76_connac_mcu_update_arp_filter() member
2273 .arp = { in mt76_connac_mcu_update_arp_filter()
/drivers/net/wireless/mediatek/mt76/mt7925/
A Dmcu.c135 struct mt7925_arpns_tlv arp; in mt7925_mcu_update_arp_filter() member
140 .arp = { in mt7925_mcu_update_arp_filter()

Completed in 107 milliseconds