/net/netfilter/ |
D | nf_flow_table_ip.c | 40 __be32 addr, __be32 new_addr) in nf_flow_nat_ip_tcp() argument 45 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, true); in nf_flow_nat_ip_tcp() 49 __be32 addr, __be32 new_addr) in nf_flow_nat_ip_udp() argument 56 new_addr, true); in nf_flow_nat_ip_udp() 64 __be32 new_addr) in nf_flow_nat_ip_l4proto() argument 68 nf_flow_nat_ip_tcp(skb, thoff, addr, new_addr); in nf_flow_nat_ip_l4proto() 71 nf_flow_nat_ip_udp(skb, thoff, addr, new_addr); in nf_flow_nat_ip_l4proto() 80 __be32 addr, new_addr; in nf_flow_snat_ip() local 85 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip() 86 iph->saddr = new_addr; in nf_flow_snat_ip() [all …]
|
D | xt_NETMAP.c | 25 union nf_inet_addr new_addr, netmask; in netmap_tg6() local 35 new_addr.in6 = ipv6_hdr(skb)->daddr; in netmap_tg6() 37 new_addr.in6 = ipv6_hdr(skb)->saddr; in netmap_tg6() 39 for (i = 0; i < ARRAY_SIZE(new_addr.ip6); i++) { in netmap_tg6() 40 new_addr.ip6[i] &= ~netmask.ip6[i]; in netmap_tg6() 41 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6() 46 newrange.min_addr = new_addr; in netmap_tg6() 47 newrange.max_addr = new_addr; in netmap_tg6()
|
D | nft_nat.c | 68 union nf_inet_addr new_addr; in nft_nat_setup_netmap() local 75 new_addr.ip = ip_hdr(skb)->saddr; in nft_nat_setup_netmap() 78 new_addr.in6 = ipv6_hdr(skb)->saddr; in nft_nat_setup_netmap() 84 new_addr.ip = ip_hdr(skb)->daddr; in nft_nat_setup_netmap() 87 new_addr.in6 = ipv6_hdr(skb)->daddr; in nft_nat_setup_netmap() 95 new_addr.ip6[i] &= ~netmask; in nft_nat_setup_netmap() 96 new_addr.ip6[i] |= range->min_addr.ip6[i] & netmask; in nft_nat_setup_netmap() 99 range->min_addr = new_addr; in nft_nat_setup_netmap() 100 range->max_addr = new_addr; in nft_nat_setup_netmap()
|
/net/sched/ |
D | act_nat.c | 91 nparm->new_addr = parm->new_addr; in tcf_nat_init() 122 __be32 new_addr; in tcf_nat_act() local 137 new_addr = parms->new_addr; in tcf_nat_act() 159 new_addr &= mask; in tcf_nat_act() 160 new_addr |= addr & ~mask; in tcf_nat_act() 165 iph->saddr = new_addr; in tcf_nat_act() 167 iph->daddr = new_addr; in tcf_nat_act() 169 csum_replace4(&iph->check, addr, new_addr); in tcf_nat_act() 188 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, in tcf_nat_act() 203 new_addr, true); in tcf_nat_act() [all …]
|
/net/openvswitch/ |
D | actions.c | 347 __be32 addr, __be32 new_addr) in update_ip_l4_checksum() argument 357 addr, new_addr, true); in update_ip_l4_checksum() 364 addr, new_addr, true); in update_ip_l4_checksum() 373 __be32 *addr, __be32 new_addr) in set_ip_addr() argument 375 update_ip_l4_checksum(skb, nh, *addr, new_addr); in set_ip_addr() 376 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr() 379 *addr = new_addr; in set_ip_addr() 383 __be32 addr[4], const __be32 new_addr[4]) in update_ipv6_checksum() 390 addr, new_addr, true); in update_ipv6_checksum() 397 addr, new_addr, true); in update_ipv6_checksum() [all …]
|
/net/bridge/ |
D | br_sysfs_br.c | 310 u8 new_addr[6]; in group_addr_store() local 315 if (!mac_pton(buf, new_addr)) in group_addr_store() 318 if (!is_link_local_ether_addr(new_addr)) in group_addr_store() 321 if (new_addr[5] == 1 || /* 802.3x Pause address */ in group_addr_store() 322 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in group_addr_store() 323 new_addr[5] == 3) /* 802.1X PAE address */ in group_addr_store() 330 ether_addr_copy(br->group_addr, new_addr); in group_addr_store()
|
D | br_netlink.c | 1370 u8 new_addr[ETH_ALEN]; in br_changelink() local 1374 memcpy(new_addr, nla_data(data[IFLA_BR_GROUP_ADDR]), ETH_ALEN); in br_changelink() 1375 if (!is_link_local_ether_addr(new_addr)) in br_changelink() 1377 if (new_addr[5] == 1 || /* 802.3x Pause address */ in br_changelink() 1378 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in br_changelink() 1379 new_addr[5] == 3) /* 802.1X PAE address */ in br_changelink() 1382 memcpy(br->group_addr, new_addr, sizeof(br->group_addr)); in br_changelink()
|
/net/vmw_vsock/ |
D | af_vsock.c | 631 struct sockaddr_vm new_addr; in __vsock_bind_connectible() local 636 vsock_addr_init(&new_addr, addr->svm_cid, addr->svm_port); in __vsock_bind_connectible() 646 new_addr.svm_port = port++; in __vsock_bind_connectible() 648 if (!__vsock_find_bound_socket(&new_addr)) { in __vsock_bind_connectible() 665 if (__vsock_find_bound_socket(&new_addr)) in __vsock_bind_connectible() 669 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_connectible()
|
/net/sctp/ |
D | sm_statefuns.c | 1393 struct sctp_transport *new_addr; in sctp_sf_check_restart_addrs() local 1407 list_for_each_entry(new_addr, &new_asoc->peer.transport_addr_list, in sctp_sf_check_restart_addrs() 1410 &new_addr->ipaddr)) { in sctp_sf_check_restart_addrs() 1411 sctp_sf_send_restart_abort(net, &new_addr->ipaddr, init, in sctp_sf_check_restart_addrs()
|
/net/ipv6/ |
D | addrconf.c | 2141 struct in6_addr new_addr; in addrconf_dad_failure() local 2145 .pfx = &new_addr, in addrconf_dad_failure() 2159 new_addr = ifp->addr; in addrconf_dad_failure() 2160 if (ipv6_generate_stable_address(&new_addr, retries, in addrconf_dad_failure()
|