Lines Matching refs:new_addr
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()
405 skb, addr, new_addr, true); in update_ipv6_checksum()
419 __be32 addr[4], const __be32 new_addr[4], in set_ipv6_addr()
423 update_ipv6_checksum(skb, l4_proto, addr, new_addr); in set_ipv6_addr()
427 memcpy(addr, new_addr, sizeof(__be32[4])); in set_ipv6_addr()
483 __be32 new_addr; in set_ipv4() local
498 new_addr = OVS_MASKED(nh->saddr, key->ipv4_src, mask->ipv4_src); in set_ipv4()
500 if (unlikely(new_addr != nh->saddr)) { in set_ipv4()
501 set_ip_addr(skb, nh, &nh->saddr, new_addr); in set_ipv4()
502 flow_key->ipv4.addr.src = new_addr; in set_ipv4()
506 new_addr = OVS_MASKED(nh->daddr, key->ipv4_dst, mask->ipv4_dst); in set_ipv4()
508 if (unlikely(new_addr != nh->daddr)) { in set_ipv4()
509 set_ip_addr(skb, nh, &nh->daddr, new_addr); in set_ipv4()
510 flow_key->ipv4.addr.dst = new_addr; in set_ipv4()