| /drivers/net/wireguard/selftest/ |
| A D | allowedips.c | 130 node->ip.ip6[0] &= node->mask.ip6[0]; in horrible_mask_self() 131 node->ip.ip6[1] &= node->mask.ip6[1]; in horrible_mask_self() 132 node->ip.ip6[2] &= node->mask.ip6[2]; in horrible_mask_self() 133 node->ip.ip6[3] &= node->mask.ip6[3]; in horrible_mask_self() 146 return (ip->in6_u.u6_addr32[0] & node->mask.ip6[0]) == node->ip.ip6[0] && in horrible_match_v6() 147 (ip->in6_u.u6_addr32[1] & node->mask.ip6[1]) == node->ip.ip6[1] && in horrible_match_v6() 148 (ip->in6_u.u6_addr32[2] & node->mask.ip6[2]) == node->ip.ip6[2] && in horrible_match_v6() 149 (ip->in6_u.u6_addr32[3] & node->mask.ip6[3]) == node->ip.ip6[3]; in horrible_match_v6() 675 !memcmp(ip, ip6(0x26075300, 0x60006b00, 0, 0xc05f0543), in wg_allowedips_selftest() 682 !memcmp(ip, ip6(0x26075300, 0x6d8a6bf8, 0xdab1e000, 0), in wg_allowedips_selftest() [all …]
|
| /drivers/net/ethernet/chelsio/libcxgb/ |
| A D | libcxgb_cm.c | 53 struct ipv6hdr *ip6 = (struct ipv6hdr *)((u8 *)(req + 1) + eth_len); in cxgb_get_4tuple() local 66 __func__, ip6->saddr.s6_addr, ip6->daddr.s6_addr, in cxgb_get_4tuple() 69 memcpy(peer_ip, ip6->saddr.s6_addr, 16); in cxgb_get_4tuple() 70 memcpy(local_ip, ip6->daddr.s6_addr, 16); in cxgb_get_4tuple()
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | txrx.h | 512 const struct ipv6hdr *ip6; in mlx5e_swp_encap_csum_partial() local 527 ip6 = tunnel ? inner_ipv6_hdr(skb) : ipv6_hdr(skb); in mlx5e_swp_encap_csum_partial() 528 th->check = ~tcp_v6_check(len, &ip6->saddr, &ip6->daddr, 0); in mlx5e_swp_encap_csum_partial() 537 ip6 = tunnel ? inner_ipv6_hdr(skb) : ipv6_hdr(skb); in mlx5e_swp_encap_csum_partial() 538 uh->check = ~udp_v6_check(len, &ip6->saddr, &ip6->daddr, 0); in mlx5e_swp_encap_csum_partial()
|
| /drivers/net/ |
| A D | amt.c | 239 &snode->source_addr.ip6, in amt_destroy_source() 240 &gnode->group_addr.ip6); in amt_destroy_source() 270 &gnode->group_addr.ip6); in amt_del_group() 358 &snode->source_addr.ip6, in amt_act_src() 359 &gnode->group_addr.ip6, in amt_act_src() 503 &gnode->group_addr.ip6); in amt_add_group() 1236 group.ip6 = ip6h->daddr; in amt_dev_xmit() 1384 &snode->source_addr.ip6, in amt_cleanup_srcs() 1555 memcpy(&src.ip6, in amt_lookup_act_srcs() 2183 group.ip6 = grec->grec_mca; in amt_mldv2_report_handler() [all …]
|
| A D | gtp.c | 139 static u32 ipv6_hashfn(const struct in6_addr *ip6) in ipv6_hashfn() argument 141 return jhash_2words((__force u32)ip6->s6_addr32[0], in ipv6_hashfn() 142 (__force u32)ip6->s6_addr32[1], gtp_h_initval); in ipv6_hashfn()
|
| /drivers/net/ipvlan/ |
| A D | ipvlan.h | 78 struct in6_addr ip6; /* IPv6 address on logical interface */ member 81 #define ip6addr ipu.ip6
|
| /drivers/infiniband/ulp/srp/ |
| A D | ib_srp.h | 246 struct sockaddr_in6 ip6; member 252 struct sockaddr_in6 ip6; member
|
| /drivers/net/ethernet/netronome/nfp/flower/ |
| A D | action.c | 652 struct nfp_fl_set_ipv6_addr *ip6) in nfp_fl_set_ip6_helper() argument 654 ip6->ipv6[word].mask |= mask; in nfp_fl_set_ip6_helper() 655 ip6->ipv6[word].exact &= ~mask; in nfp_fl_set_ip6_helper() 656 ip6->ipv6[word].exact |= exact & mask; in nfp_fl_set_ip6_helper() 658 ip6->reserved = cpu_to_be16(0); in nfp_fl_set_ip6_helper() 659 ip6->head.jump_id = opcode_tag; in nfp_fl_set_ip6_helper() 660 ip6->head.len_lw = sizeof(*ip6) >> NFP_FL_LW_SIZ; in nfp_fl_set_ip6_helper()
|
| /drivers/net/ethernet/intel/ixgbevf/ |
| A D | ipsec.c | 550 struct ipv6hdr *ip6 = NULL; in ixgbevf_ipsec_rx() local 568 ip6 = (struct ipv6hdr *)(skb->data + ETH_HLEN); in ixgbevf_ipsec_rx() 569 daddr = &ip6->daddr; in ixgbevf_ipsec_rx() 570 c_hdr = (u8 *)ip6 + sizeof(struct ipv6hdr); in ixgbevf_ipsec_rx()
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| A D | pedit.h | 13 struct ipv6hdr ip6; member
|
| A D | pedit.c | 13 [FLOW_ACT_MANGLE_HDR_TYPE_IP6] = offsetof(struct pedit_headers, ip6),
|
| /drivers/net/ethernet/qlogic/qede/ |
| A D | qede_filter.c | 1475 struct ipv6hdr *ip6 = (struct ipv6hdr *)(header + ETH_HLEN); in qede_flow_build_ipv6_hdr() local 1479 memcpy(&ip6->saddr, &t->src_ipv6, sizeof(struct in6_addr)); in qede_flow_build_ipv6_hdr() 1480 memcpy(&ip6->daddr, &t->dst_ipv6, sizeof(struct in6_addr)); in qede_flow_build_ipv6_hdr() 1481 ip6->version = 0x6; in qede_flow_build_ipv6_hdr() 1484 ip6->nexthdr = NEXTHDR_TCP; in qede_flow_build_ipv6_hdr() 1485 ip6->payload_len = cpu_to_be16(sizeof(struct tcphdr)); in qede_flow_build_ipv6_hdr() 1487 ip6->nexthdr = NEXTHDR_UDP; in qede_flow_build_ipv6_hdr() 1488 ip6->payload_len = cpu_to_be16(sizeof(struct udphdr)); in qede_flow_build_ipv6_hdr()
|
| /drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_ipsec.c | 1157 struct ipv6hdr *ip6 = NULL; in ixgbe_ipsec_rx() local 1175 ip6 = (struct ipv6hdr *)(skb->data + ETH_HLEN); in ixgbe_ipsec_rx() 1176 daddr = &ip6->daddr; in ixgbe_ipsec_rx() 1177 c_hdr = (u8 *)ip6 + sizeof(struct ipv6hdr); in ixgbe_ipsec_rx()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_tc.c | 3251 OFFLOAD(SIPV6_127_96, 32, U32_MAX, ip6.saddr.s6_addr32[0], 0, 3253 OFFLOAD(SIPV6_95_64, 32, U32_MAX, ip6.saddr.s6_addr32[1], 0, 3255 OFFLOAD(SIPV6_63_32, 32, U32_MAX, ip6.saddr.s6_addr32[2], 0, 3257 OFFLOAD(SIPV6_31_0, 32, U32_MAX, ip6.saddr.s6_addr32[3], 0, 3259 OFFLOAD(DIPV6_127_96, 32, U32_MAX, ip6.daddr.s6_addr32[0], 0, 3261 OFFLOAD(DIPV6_95_64, 32, U32_MAX, ip6.daddr.s6_addr32[1], 0, 3263 OFFLOAD(DIPV6_63_32, 32, U32_MAX, ip6.daddr.s6_addr32[2], 0, 3265 OFFLOAD(DIPV6_31_0, 32, U32_MAX, ip6.daddr.s6_addr32[3], 0, 3267 OFFLOAD(IPV6_HOPLIMIT, 8, U8_MAX, ip6.hop_limit, 0, ttl_hoplimit), 3268 OFFLOAD(IP_DSCP, 16, 0x0fc0, ip6, 0, ip_dscp),
|
| A D | en_rx.c | 1447 struct ipv6hdr *ip6; in mlx5e_skb_csum_fixup() local 1468 ip6 = (struct ipv6hdr *)(skb->data + network_depth); in mlx5e_skb_csum_fixup() 1469 pkt_len = network_depth + sizeof(*ip6) + ntohs(ip6->payload_len); in mlx5e_skb_csum_fixup()
|
| /drivers/net/hyperv/ |
| A D | hyperv_net.h | 1491 u8 ip6; member 1510 u8 ip6; member
|
| A D | netvsc_drv.c | 404 struct ipv6hdr *ip6 = ipv6_hdr(skb); in net_checksum_info() local 406 if (ip6->nexthdr == IPPROTO_TCP) in net_checksum_info() 408 else if (ip6->nexthdr == IPPROTO_UDP) in net_checksum_info()
|
| A D | rndis_filter.c | 1411 if (hwcaps.rsc.ip4 && hwcaps.rsc.ip6) { in rndis_netdev_set_hwcaps()
|
| /drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
| A D | chcr_ktls.c | 994 struct ipv6hdr *ip6; in chcr_ktls_write_tcp_options() local 1054 ip6 = (struct ipv6hdr *)(buf + maclen); in chcr_ktls_write_tcp_options() 1055 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options()
|
| /drivers/net/vxlan/ |
| A D | vxlan_mdb.c | 118 e->addr.u.ip6 = dst->sin6.sin6_addr; in vxlan_br_mdb_entry_fill() 393 group->dst.sin6.sin6_addr = entry->addr.u.ip6; in vxlan_mdb_group_set()
|
| /drivers/infiniband/core/ |
| A D | cma.c | 366 struct in6_addr ip6; member 1482 .sin6_addr = hdr->dst_addr.ip6, in cma_save_ip6_info() 1490 .sin6_addr = hdr->src_addr.ip6, in cma_save_ip6_info() 1746 memcmp(&hdr->dst_addr.ip6, &ip6_addr, sizeof(ip6_addr))) in cma_match_private_data() 4203 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr() 4204 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
|
| /drivers/net/bonding/ |
| A D | bond_main.c | 3463 struct ipv6hdr ip6; in bond_na_rcv() member 3472 if (!combined || combined->ip6.nexthdr != NEXTHDR_ICMP || in bond_na_rcv() 3477 saddr = &combined->ip6.saddr; in bond_na_rcv() 3478 daddr = &combined->ip6.daddr; in bond_na_rcv() 5342 struct ipv6hdr ip6; in bond_should_broadcast_neighbor() member 5359 if (combined && combined->ip6.nexthdr == NEXTHDR_ICMP && in bond_should_broadcast_neighbor()
|
| /drivers/net/ethernet/microsoft/mana/ |
| A D | mana_en.c | 110 struct ipv6hdr *ip6 = ipv6_hdr(skb); in mana_checksum_info() local 112 if (ip6->nexthdr == IPPROTO_TCP) in mana_checksum_info() 115 if (ip6->nexthdr == IPPROTO_UDP) in mana_checksum_info()
|
| /drivers/net/ethernet/mellanox/mlxsw/ |
| A D | spectrum_span.c | 526 struct flowi6 fl6 = t->fl.u.ip6; in mlxsw_sp_span_gretap6_route()
|