Searched refs:new_addr (Results 1 – 8 of 8) sorted by relevance
/net/sched/ |
D | act_nat.c | 78 p->new_addr = parm->new_addr; in tcf_nat_init() 97 __be32 new_addr; in tcf_nat() local 109 new_addr = p->new_addr; in tcf_nat() 136 new_addr &= mask; in tcf_nat() 137 new_addr |= addr & ~mask; in tcf_nat() 142 iph->saddr = new_addr; in tcf_nat() 144 iph->daddr = new_addr; in tcf_nat() 146 csum_replace4(&iph->check, addr, new_addr); in tcf_nat() 165 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, in tcf_nat() 180 new_addr, true); in tcf_nat() [all …]
|
/net/netfilter/ |
D | xt_NETMAP.c | 28 union nf_inet_addr new_addr, netmask; in netmap_tg6() local 38 new_addr.in6 = ipv6_hdr(skb)->daddr; in netmap_tg6() 40 new_addr.in6 = ipv6_hdr(skb)->saddr; in netmap_tg6() 42 for (i = 0; i < ARRAY_SIZE(new_addr.ip6); i++) { in netmap_tg6() 43 new_addr.ip6[i] &= ~netmask.ip6[i]; in netmap_tg6() 44 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6() 49 newrange.min_addr = new_addr; in netmap_tg6() 50 newrange.max_addr = new_addr; in netmap_tg6()
|
/net/openvswitch/ |
D | actions.c | 315 __be32 addr, __be32 new_addr) in update_ip_l4_checksum() argument 325 addr, new_addr, true); in update_ip_l4_checksum() 332 addr, new_addr, true); in update_ip_l4_checksum() 341 __be32 *addr, __be32 new_addr) in set_ip_addr() argument 343 update_ip_l4_checksum(skb, nh, *addr, new_addr); in set_ip_addr() 344 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr() 346 *addr = new_addr; in set_ip_addr() 350 __be32 addr[4], const __be32 new_addr[4]) in update_ipv6_checksum() 357 addr, new_addr, true); in update_ipv6_checksum() 364 addr, new_addr, true); in update_ipv6_checksum() [all …]
|
/net/bridge/ |
D | br_sysfs_br.c | 285 u8 new_addr[6]; in group_addr_store() local 292 &new_addr[0], &new_addr[1], &new_addr[2], in group_addr_store() 293 &new_addr[3], &new_addr[4], &new_addr[5]) != 6) in group_addr_store() 296 if (!is_link_local_ether_addr(new_addr)) in group_addr_store() 299 if (new_addr[5] == 1 || /* 802.3x Pause address */ in group_addr_store() 300 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in group_addr_store() 301 new_addr[5] == 3) /* 802.1X PAE address */ in group_addr_store() 309 br->group_addr[i] = new_addr[i]; in group_addr_store()
|
D | br_netlink.c | 944 u8 new_addr[ETH_ALEN]; in br_changelink() local 948 memcpy(new_addr, nla_data(data[IFLA_BR_GROUP_ADDR]), ETH_ALEN); in br_changelink() 949 if (!is_link_local_ether_addr(new_addr)) in br_changelink() 951 if (new_addr[5] == 1 || /* 802.3x Pause address */ in br_changelink() 952 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in br_changelink() 953 new_addr[5] == 3) /* 802.1X PAE address */ in br_changelink() 956 memcpy(br->group_addr, new_addr, sizeof(br->group_addr)); in br_changelink()
|
/net/vmw_vsock/ |
D | af_vsock.c | 506 struct sockaddr_vm new_addr; in __vsock_bind_stream() local 508 vsock_addr_init(&new_addr, addr->svm_cid, addr->svm_port); in __vsock_bind_stream() 518 new_addr.svm_port = port++; in __vsock_bind_stream() 520 if (!__vsock_find_bound_socket(&new_addr)) { in __vsock_bind_stream() 537 if (__vsock_find_bound_socket(&new_addr)) in __vsock_bind_stream() 541 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_stream()
|
/net/sctp/ |
D | sm_statefuns.c | 1270 struct sctp_transport *new_addr; in sctp_sf_check_restart_addrs() local 1284 list_for_each_entry(new_addr, &new_asoc->peer.transport_addr_list, in sctp_sf_check_restart_addrs() 1287 &new_addr->ipaddr)) { in sctp_sf_check_restart_addrs() 1288 sctp_sf_send_restart_abort(net, &new_addr->ipaddr, init, in sctp_sf_check_restart_addrs()
|
/net/ipv6/ |
D | addrconf.c | 1943 struct in6_addr new_addr; in addrconf_dad_failure() local 1955 new_addr = ifp->addr; in addrconf_dad_failure() 1956 if (ipv6_generate_stable_address(&new_addr, retries, in addrconf_dad_failure() 1973 ifp2 = ipv6_add_addr(idev, &new_addr, NULL, pfxlen, in addrconf_dad_failure()
|