Home
last modified time | relevance | path

Searched refs:ip6 (Results 1 – 16 of 16) sorted by relevance

/drivers/net/wireguard/selftest/
Dallowedips.c130 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()
437 static __init inline struct in6_addr *ip6(u32 a, u32 b, u32 c, u32 d) in ip6() function
628 !memcmp(ip, ip6(0x26075300, 0x60006b00, 0, 0xc05f0543), in wg_allowedips_selftest()
[all …]
/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_cm.c53 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/ipvlan/
Dipvlan.h78 struct in6_addr ip6; /* IPv6 address on logical interface */ member
81 #define ip6addr ipu.ip6
/drivers/infiniband/ulp/srp/
Dib_srp.h238 struct sockaddr_in6 ip6; member
244 struct sockaddr_in6 ip6; member
/drivers/net/ethernet/netronome/nfp/flower/
Daction.c634 struct nfp_fl_set_ipv6_addr *ip6) in nfp_fl_set_ip6_helper() argument
636 ip6->ipv6[word].mask |= mask; in nfp_fl_set_ip6_helper()
637 ip6->ipv6[word].exact &= ~mask; in nfp_fl_set_ip6_helper()
638 ip6->ipv6[word].exact |= exact & mask; in nfp_fl_set_ip6_helper()
640 ip6->reserved = cpu_to_be16(0); in nfp_fl_set_ip6_helper()
641 ip6->head.jump_id = opcode_tag; in nfp_fl_set_ip6_helper()
642 ip6->head.len_lw = sizeof(*ip6) >> NFP_FL_LW_SIZ; in nfp_fl_set_ip6_helper()
/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c560 struct ipv6hdr *ip6 = NULL; in ixgbevf_ipsec_rx() local
578 ip6 = (struct ipv6hdr *)(skb->data + ETH_HLEN); in ixgbevf_ipsec_rx()
579 daddr = &ip6->daddr; in ixgbevf_ipsec_rx()
580 c_hdr = (u8 *)ip6 + sizeof(struct ipv6hdr); in ixgbevf_ipsec_rx()
/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1487 struct ipv6hdr *ip6 = (struct ipv6hdr *)(header + ETH_HLEN); in qede_flow_build_ipv6_hdr() local
1491 memcpy(&ip6->saddr, &t->src_ipv6, sizeof(struct in6_addr)); in qede_flow_build_ipv6_hdr()
1492 memcpy(&ip6->daddr, &t->dst_ipv6, sizeof(struct in6_addr)); in qede_flow_build_ipv6_hdr()
1493 ip6->version = 0x6; in qede_flow_build_ipv6_hdr()
1496 ip6->nexthdr = NEXTHDR_TCP; in qede_flow_build_ipv6_hdr()
1497 ip6->payload_len = cpu_to_be16(sizeof(struct tcphdr)); in qede_flow_build_ipv6_hdr()
1499 ip6->nexthdr = NEXTHDR_UDP; in qede_flow_build_ipv6_hdr()
1500 ip6->payload_len = cpu_to_be16(sizeof(struct udphdr)); in qede_flow_build_ipv6_hdr()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c1168 struct ipv6hdr *ip6 = NULL; in ixgbe_ipsec_rx() local
1186 ip6 = (struct ipv6hdr *)(skb->data + ETH_HLEN); in ixgbe_ipsec_rx()
1187 daddr = &ip6->daddr; in ixgbe_ipsec_rx()
1188 c_hdr = (u8 *)ip6 + sizeof(struct ipv6hdr); in ixgbe_ipsec_rx()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2720 struct ipv6hdr ip6; member
2734 [FLOW_ACT_MANGLE_HDR_TYPE_IP6] = offsetof(struct pedit_headers, ip6),
2820 OFFLOAD(SIPV6_127_96, 32, U32_MAX, ip6.saddr.s6_addr32[0], 0,
2822 OFFLOAD(SIPV6_95_64, 32, U32_MAX, ip6.saddr.s6_addr32[1], 0,
2824 OFFLOAD(SIPV6_63_32, 32, U32_MAX, ip6.saddr.s6_addr32[2], 0,
2826 OFFLOAD(SIPV6_31_0, 32, U32_MAX, ip6.saddr.s6_addr32[3], 0,
2828 OFFLOAD(DIPV6_127_96, 32, U32_MAX, ip6.daddr.s6_addr32[0], 0,
2830 OFFLOAD(DIPV6_95_64, 32, U32_MAX, ip6.daddr.s6_addr32[1], 0,
2832 OFFLOAD(DIPV6_63_32, 32, U32_MAX, ip6.daddr.s6_addr32[2], 0,
2834 OFFLOAD(DIPV6_31_0, 32, U32_MAX, ip6.daddr.s6_addr32[3], 0,
[all …]
Den_rx.c934 struct ipv6hdr *ip6; in mlx5e_skb_csum_fixup() local
955 ip6 = (struct ipv6hdr *)(skb->data + network_depth); in mlx5e_skb_csum_fixup()
956 pkt_len = network_depth + sizeof(*ip6) + ntohs(ip6->payload_len); in mlx5e_skb_csum_fixup()
/drivers/net/hyperv/
Dhyperv_net.h1369 u8 ip6; member
1388 u8 ip6; member
Dnetvsc_drv.c489 struct ipv6hdr *ip6 = ipv6_hdr(skb); in net_checksum_info() local
491 if (ip6->nexthdr == IPPROTO_TCP) in net_checksum_info()
493 else if (ip6->nexthdr == IPPROTO_UDP) in net_checksum_info()
Drndis_filter.c1319 if (hwcaps.rsc.ip4 && hwcaps.rsc.ip6) { in rndis_netdev_set_hwcaps()
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c999 struct ipv6hdr *ip6; in chcr_ktls_write_tcp_options() local
1059 ip6 = (struct ipv6hdr *)(buf + maclen); in chcr_ktls_write_tcp_options()
1060 ip6->payload_len = htons(pktlen - maclen - iplen); in chcr_ktls_write_tcp_options()
/drivers/infiniband/core/
Dcma.c377 struct in6_addr ip6; member
1314 .sin6_addr = hdr->dst_addr.ip6, in cma_save_ip6_info()
1322 .sin6_addr = hdr->src_addr.ip6, in cma_save_ip6_info()
1578 memcmp(&hdr->dst_addr.ip6, &ip6_addr, sizeof(ip6_addr))) in cma_match_private_data()
3927 cma_hdr->src_addr.ip6 = src6->sin6_addr; in cma_format_hdr()
3928 cma_hdr->dst_addr.ip6 = dst6->sin6_addr; in cma_format_hdr()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_span.c524 struct flowi6 fl6 = t->fl.u.ip6; in mlxsw_sp_span_gretap6_route()