View | Details | Raw Unified | Return to bug 51082 | Differences between
and this patch

Collapse All | Expand All

(-)sys/netinet/udp_usrreq.c (-4 / +17 lines)
Lines 355-364 Link Here
355
			char buf[4*sizeof "123"];
355
			char buf[4*sizeof "123"];
356
356
357
			strcpy(buf, inet_ntoa(ip->ip_dst));
357
			strcpy(buf, inet_ntoa(ip->ip_dst));
358
			log(LOG_INFO,
358
			switch (log_in_vain) {
359
			    "Connection attempt to UDP %s:%d from %s:%d\n",
359
				case 1:
360
			    buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src),
360
					log(LOG_INFO,
361
			    ntohs(uh->uh_sport));
361
			    			"Connection attempt to UDP %s:%d from %s:%d\n",
362
			    			buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src),
363
			    			ntohs(uh->uh_sport));
364
					break;
365
				case 2:
366
					log(LOG_INFO,
367
						"dropped UDP %s:%d -> %s:%d\n", 
368
						inet_ntoa(ip->ip_src),
369
						ntohs(uh->uh_sport),
370
			    			buf, ntohs(uh->uh_dport));
371
					break;
372
				default:
373
					break;
374
			}
362
		}
375
		}
363
		udpstat.udps_noport++;
376
		udpstat.udps_noport++;
364
		if (m->m_flags & (M_BCAST | M_MCAST)) {
377
		if (m->m_flags & (M_BCAST | M_MCAST)) {

Return to bug 51082