mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Wrong checksum may have been computed for certain UDP packets.
Reviewed by: jlemon
This commit is contained in:
parent
ac4c54948c
commit
506f494939
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ udp_input(m, off, proto)
|
|||
uh->uh_sum = m->m_pkthdr.csum_data;
|
||||
else
|
||||
uh->uh_sum = in_pseudo(ip->ip_src.s_addr,
|
||||
ip->ip_dst.s_addr, htonl(ip->ip_len +
|
||||
ip->ip_dst.s_addr, htonl((u_short)len +
|
||||
m->m_pkthdr.csum_data + IPPROTO_UDP));
|
||||
uh->uh_sum ^= 0xffff;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue