FreeBSD Bugzilla – Attachment 30300 Details for
Bug 51082
FEATURE: More descriptive message on dropped tcp/udp attempts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.07 KB, created by
Rene de Vries
on 2003-04-17 09:20:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Rene de Vries
Created:
2003-04-17 09:20:07 UTC
Size:
1.07 KB
patch
obsolete
>Index: sys/netinet/udp_usrreq.c >=================================================================== >RCS file: /home/fbsd-cvsrepo/src/sys/netinet/udp_usrreq.c,v >retrieving revision 1.133 >diff -u -r1.133 udp_usrreq.c >--- sys/netinet/udp_usrreq.c 19 Feb 2003 05:47:34 -0000 1.133 >+++ sys/netinet/udp_usrreq.c 1 Apr 2003 13:51:06 -0000 >@@ -355,10 +355,23 @@ > char buf[4*sizeof "123"]; > > strcpy(buf, inet_ntoa(ip->ip_dst)); >- log(LOG_INFO, >- "Connection attempt to UDP %s:%d from %s:%d\n", >- buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src), >- ntohs(uh->uh_sport)); >+ switch (log_in_vain) { >+ case 1: >+ log(LOG_INFO, >+ "Connection attempt to UDP %s:%d from %s:%d\n", >+ buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src), >+ ntohs(uh->uh_sport)); >+ break; >+ case 2: >+ log(LOG_INFO, >+ "dropped UDP %s:%d -> %s:%d\n", >+ inet_ntoa(ip->ip_src), >+ ntohs(uh->uh_sport), >+ buf, ntohs(uh->uh_dport)); >+ break; >+ default: >+ break; >+ } > } > udpstat.udps_noport++; > if (m->m_flags & (M_BCAST | M_MCAST)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51082
:
30299
| 30300