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()
376 *addr = new_addr; in set_ip_addr()
380 __be32 addr[4], const __be32 new_addr[4]) in update_ipv6_checksum()
387 addr, new_addr, true); in update_ipv6_checksum()
394 addr, new_addr, true); in update_ipv6_checksum()
402 skb, addr, new_addr, true); in update_ipv6_checksum()
416 __be32 addr[4], const __be32 new_addr[4], in set_ipv6_addr()
420 update_ipv6_checksum(skb, l4_proto, addr, new_addr); in set_ipv6_addr()
423 memcpy(addr, new_addr, sizeof(__be32[4])); in set_ipv6_addr()
448 __be32 new_addr; in set_ipv4() local
463 new_addr = OVS_MASKED(nh->saddr, key->ipv4_src, mask->ipv4_src); in set_ipv4()
465 if (unlikely(new_addr != nh->saddr)) { in set_ipv4()
466 set_ip_addr(skb, nh, &nh->saddr, new_addr); in set_ipv4()
467 flow_key->ipv4.addr.src = new_addr; in set_ipv4()
471 new_addr = OVS_MASKED(nh->daddr, key->ipv4_dst, mask->ipv4_dst); in set_ipv4()
473 if (unlikely(new_addr != nh->daddr)) { in set_ipv4()
474 set_ip_addr(skb, nh, &nh->daddr, new_addr); in set_ipv4()
475 flow_key->ipv4.addr.dst = new_addr; in set_ipv4()