aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-02-20 10:20:03 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-02-20 10:20:03 +0000
commitafdb42748dac397b0a1eb773be6b28ab3ab28c26 (patch)
treeb13f1fab724b0efcf74d58f3e8cd061412c53142 /sys/netinet/udp_usrreq.c
parent3329b236599c2765e7c57d82c718ff5d7c2e28b9 (diff)
downloadsrc-afdb42748dac397b0a1eb773be6b28ab3ab28c26.tar.gz
src-afdb42748dac397b0a1eb773be6b28ab3ab28c26.zip
Rename two identically named log_in_vain variables: tcp_input.c's static
log_in_vain to tcp_log_in_vain, and udp_usrreq's global log_in_vain to udp_log_in_vain. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=166842
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 0e4687ad029d..2743cf741838 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -105,9 +105,9 @@ static int udpcksum = 1;
SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW, &udpcksum,
0, "");
-int log_in_vain = 0;
+int udp_log_in_vain = 0;
SYSCTL_INT(_net_inet_udp, OID_AUTO, log_in_vain, CTLFLAG_RW,
- &log_in_vain, 0, "Log all incoming UDP packets");
+ &udp_log_in_vain, 0, "Log all incoming UDP packets");
static int blackhole = 0;
SYSCTL_INT(_net_inet_udp, OID_AUTO, blackhole, CTLFLAG_RW, &blackhole, 0,
@@ -407,7 +407,7 @@ udp_input(struct mbuf *m, int off)
inp = in_pcblookup_hash(&udbinfo, ip->ip_src, uh->uh_sport,
ip->ip_dst, uh->uh_dport, 1, m->m_pkthdr.rcvif);
if (inp == NULL) {
- if (log_in_vain) {
+ if (udp_log_in_vain) {
char buf[4*sizeof "123"];
strcpy(buf, inet_ntoa(ip->ip_dst));