1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fixed some style bugs (mainly convoluted logic for blackhole processing).

This commit is contained in:
Bruce Evans 2000-05-24 12:57:52 +00:00
parent 50545e9e59
commit 582a77606f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60872

View File

@ -350,14 +350,11 @@ udp_input(m, off, proto)
goto bad;
}
*ip = save_ip;
if (badport_bandlim(0) < 0)
goto bad;
if (!blackhole)
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
else
if (blackhole)
goto bad;
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
return;
}
#ifdef IPSEC
@ -905,4 +902,3 @@ struct pr_usrreqs udp_usrreqs = {
pru_rcvoob_notsupp, udp_send, pru_sense_null, udp_shutdown,
in_setsockaddr, sosend, soreceive, sopoll
};