Lines Matching refs:new_addr
345 __be32 addr, __be32 new_addr) in update_ip_l4_checksum() argument
355 addr, new_addr, true); in update_ip_l4_checksum()
362 addr, new_addr, true); in update_ip_l4_checksum()
371 __be32 *addr, __be32 new_addr) in set_ip_addr() argument
373 update_ip_l4_checksum(skb, nh, *addr, new_addr); in set_ip_addr()
374 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr()
377 *addr = new_addr; in set_ip_addr()
381 __be32 addr[4], const __be32 new_addr[4]) in update_ipv6_checksum()
388 addr, new_addr, true); in update_ipv6_checksum()
395 addr, new_addr, true); in update_ipv6_checksum()
403 skb, addr, new_addr, true); in update_ipv6_checksum()
417 __be32 addr[4], const __be32 new_addr[4], in set_ipv6_addr()
421 update_ipv6_checksum(skb, l4_proto, addr, new_addr); in set_ipv6_addr()
425 memcpy(addr, new_addr, sizeof(__be32[4])); in set_ipv6_addr()
481 __be32 new_addr; in set_ipv4() local
496 new_addr = OVS_MASKED(nh->saddr, key->ipv4_src, mask->ipv4_src); in set_ipv4()
498 if (unlikely(new_addr != nh->saddr)) { in set_ipv4()
499 set_ip_addr(skb, nh, &nh->saddr, new_addr); in set_ipv4()
500 flow_key->ipv4.addr.src = new_addr; in set_ipv4()
504 new_addr = OVS_MASKED(nh->daddr, key->ipv4_dst, mask->ipv4_dst); in set_ipv4()
506 if (unlikely(new_addr != nh->daddr)) { in set_ipv4()
507 set_ip_addr(skb, nh, &nh->daddr, new_addr); in set_ipv4()
508 flow_key->ipv4.addr.dst = new_addr; in set_ipv4()