mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Do not waste a time saving a copy of IP header if we are certainly
not going to send an ICMP error message (net.inet.udp.blackhole=1).
This commit is contained in:
parent
9005f14a3b
commit
48cb400fb1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68056
|
@ -208,7 +208,8 @@ udp_input(m, off, proto)
|
|||
* Save a copy of the IP header in case we want restore it
|
||||
* for sending an ICMP error message in response.
|
||||
*/
|
||||
save_ip = *ip;
|
||||
if (!blackhole)
|
||||
save_ip = *ip;
|
||||
|
||||
/*
|
||||
* Checksum extended UDP header and data.
|
||||
|
|
Loading…
Reference in a new issue