Home
last modified time | relevance | path

Searched refs:new_addr (Results 1 – 8 of 8) sorted by relevance

/net/sched/
Dact_nat.c76 p->new_addr = parm->new_addr; in tcf_nat_init()
95 __be32 new_addr; in tcf_nat() local
107 new_addr = p->new_addr; in tcf_nat()
134 new_addr &= mask; in tcf_nat()
135 new_addr |= addr & ~mask; in tcf_nat()
140 iph->saddr = new_addr; in tcf_nat()
142 iph->daddr = new_addr; in tcf_nat()
144 csum_replace4(&iph->check, addr, new_addr); in tcf_nat()
163 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, in tcf_nat()
178 new_addr, true); in tcf_nat()
[all …]
/net/netfilter/
Dxt_NETMAP.c28 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/
Dactions.c382 __be32 addr, __be32 new_addr) in update_ip_l4_checksum() argument
392 addr, new_addr, true); in update_ip_l4_checksum()
399 addr, new_addr, true); in update_ip_l4_checksum()
408 __be32 *addr, __be32 new_addr) in set_ip_addr() argument
410 update_ip_l4_checksum(skb, nh, *addr, new_addr); in set_ip_addr()
411 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr()
413 *addr = new_addr; in set_ip_addr()
417 __be32 addr[4], const __be32 new_addr[4]) in update_ipv6_checksum()
424 addr, new_addr, true); in update_ipv6_checksum()
431 addr, new_addr, true); in update_ipv6_checksum()
[all …]
/net/bridge/
Dbr_sysfs_br.c286 u8 new_addr[6]; in group_addr_store() local
293 &new_addr[0], &new_addr[1], &new_addr[2], in group_addr_store()
294 &new_addr[3], &new_addr[4], &new_addr[5]) != 6) in group_addr_store()
297 if (!is_link_local_ether_addr(new_addr)) in group_addr_store()
300 if (new_addr[5] == 1 || /* 802.3x Pause address */ in group_addr_store()
301 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in group_addr_store()
302 new_addr[5] == 3) /* 802.1X PAE address */ in group_addr_store()
310 br->group_addr[i] = new_addr[i]; in group_addr_store()
Dbr_netlink.c1054 u8 new_addr[ETH_ALEN]; in br_changelink() local
1058 memcpy(new_addr, nla_data(data[IFLA_BR_GROUP_ADDR]), ETH_ALEN); in br_changelink()
1059 if (!is_link_local_ether_addr(new_addr)) in br_changelink()
1061 if (new_addr[5] == 1 || /* 802.3x Pause address */ in br_changelink()
1062 new_addr[5] == 2 || /* 802.3ad Slow protocols */ in br_changelink()
1063 new_addr[5] == 3) /* 802.1X PAE address */ in br_changelink()
1066 memcpy(br->group_addr, new_addr, sizeof(br->group_addr)); in br_changelink()
/net/vmw_vsock/
Daf_vsock.c492 struct sockaddr_vm new_addr; in __vsock_bind_stream() local
498 vsock_addr_init(&new_addr, addr->svm_cid, addr->svm_port); in __vsock_bind_stream()
508 new_addr.svm_port = port++; in __vsock_bind_stream()
510 if (!__vsock_find_bound_socket(&new_addr)) { in __vsock_bind_stream()
527 if (__vsock_find_bound_socket(&new_addr)) in __vsock_bind_stream()
531 vsock_addr_init(&vsk->local_addr, new_addr.svm_cid, new_addr.svm_port); in __vsock_bind_stream()
/net/sctp/
Dsm_statefuns.c1315 struct sctp_transport *new_addr; in sctp_sf_check_restart_addrs() local
1329 list_for_each_entry(new_addr, &new_asoc->peer.transport_addr_list, in sctp_sf_check_restart_addrs()
1332 &new_addr->ipaddr)) { in sctp_sf_check_restart_addrs()
1333 sctp_sf_send_restart_abort(net, &new_addr->ipaddr, init, in sctp_sf_check_restart_addrs()
/net/ipv6/
Daddrconf.c2000 struct in6_addr new_addr; in addrconf_dad_failure() local
2012 new_addr = ifp->addr; in addrconf_dad_failure()
2013 if (ipv6_generate_stable_address(&new_addr, retries, in addrconf_dad_failure()
2030 ifp2 = ipv6_add_addr(idev, &new_addr, NULL, pfxlen, in addrconf_dad_failure()