mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 22:50:28 +01:00
bpf: clat: use the right endian-conversion function
bpf_ntohl() is more correct because the field is in network byte order; but there is no actual change in behavior.
This commit is contained in:
parent
7c89e7f19b
commit
51690d5f48
1 changed files with 1 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ rewrite_icmpv6(struct ipv6hdr *ip6h,
|
|||
icmp.type = ICMP_DEST_UNREACH;
|
||||
icmp.code = ICMP_FRAG_NEEDED;
|
||||
|
||||
mtu = bpf_htonl(icmp6->icmp6_mtu) - 20;
|
||||
mtu = bpf_ntohl(icmp6->icmp6_mtu) - 20;
|
||||
if (mtu > 0xffff)
|
||||
return -1;
|
||||
icmp.un.frag.mtu = bpf_htons(mtu);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue