Deleted Added
full compact
udp6_usrreq.c (164033) udp6_usrreq.c (165118)
1/* $FreeBSD: head/sys/netinet6/udp6_usrreq.c 164033 2006-11-06 13:42:10Z rwatson $ */
1/* $FreeBSD: head/sys/netinet6/udp6_usrreq.c 165118 2006-12-12 12:17:58Z bz $ */
2/* $KAME: udp6_usrreq.c,v 1.27 2001/05/21 05:45:10 jinmei Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 312 unchanged lines hidden (view full) ---

322 /*
323 * Locate pcb for datagram.
324 */
325 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_src, uh->uh_sport,
326 &ip6->ip6_dst, uh->uh_dport, 1,
327 m->m_pkthdr.rcvif);
328 if (in6p == NULL) {
329 if (log_in_vain) {
2/* $KAME: udp6_usrreq.c,v 1.27 2001/05/21 05:45:10 jinmei Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 312 unchanged lines hidden (view full) ---

322 /*
323 * Locate pcb for datagram.
324 */
325 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_src, uh->uh_sport,
326 &ip6->ip6_dst, uh->uh_dport, 1,
327 m->m_pkthdr.rcvif);
328 if (in6p == NULL) {
329 if (log_in_vain) {
330 char buf[INET6_ADDRSTRLEN];
330 char ip6bufs[INET6_ADDRSTRLEN];
331 char ip6bufd[INET6_ADDRSTRLEN];
331
332
332 strcpy(buf, ip6_sprintf(&ip6->ip6_dst));
333 log(LOG_INFO,
334 "Connection attempt to UDP [%s]:%d from [%s]:%d\n",
333 log(LOG_INFO,
334 "Connection attempt to UDP [%s]:%d from [%s]:%d\n",
335 buf, ntohs(uh->uh_dport),
336 ip6_sprintf(&ip6->ip6_src), ntohs(uh->uh_sport));
335 ip6_sprintf(ip6bufd, &ip6->ip6_dst),
336 ntohs(uh->uh_dport),
337 ip6_sprintf(ip6bufs, &ip6->ip6_src),
338 ntohs(uh->uh_sport));
337 }
338 udpstat.udps_noport++;
339 if (m->m_flags & M_MCAST) {
340 printf("UDP6: M_MCAST is set in a unicast packet.\n");
341 udpstat.udps_noportmcast++;
342 goto bad;
343 }
344 INP_INFO_RUNLOCK(&udbinfo);

--- 459 unchanged lines hidden ---
339 }
340 udpstat.udps_noport++;
341 if (m->m_flags & M_MCAST) {
342 printf("UDP6: M_MCAST is set in a unicast packet.\n");
343 udpstat.udps_noportmcast++;
344 goto bad;
345 }
346 INP_INFO_RUNLOCK(&udbinfo);

--- 459 unchanged lines hidden ---