1/*-
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California.
4 * Copyright (c) 2008 Robert N. M. Watson
5 * Copyright (c) 2010-2011 Juniper Networks, Inc.
6 * All rights reserved.
7 *
8 * Portions of this software were developed by Robert N. M. Watson under
--- 22 unchanged lines hidden (view full) ---
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/netinet/udp_usrreq.c 222691 2011-06-04 16:33:06Z rwatson $");
40
41#include "opt_ipfw.h"
42#include "opt_inet.h"
43#include "opt_inet6.h"
44#include "opt_ipsec.h"
45
46#include <sys/param.h>
47#include <sys/domain.h>
--- 514 unchanged lines hidden (view full) ---
562 INP_RUNLOCK(last);
563 INP_INFO_RUNLOCK(&V_udbinfo);
564 return;
565 }
566
567 /*
568 * Locate pcb for datagram.
569 */
570 inp = in_pcblookup_mbuf(&V_udbinfo, ip->ip_src, uh->uh_sport,
571 ip->ip_dst, uh->uh_dport, INPLOOKUP_WILDCARD | INPLOOKUP_RLOCKPCB,
572 ifp, m);
573 if (inp == NULL) {
574 if (udp_log_in_vain) {
575 char buf[4*sizeof "123"];
576
577 strcpy(buf, inet_ntoa(ip->ip_dst));
578 log(LOG_INFO,
579 "Connection attempt to UDP %s:%d from %s:%d\n",
580 buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src),
--- 1024 unchanged lines hidden ---
2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
3 * The Regents of the University of California.
4 * Copyright (c) 2008 Robert N. M. Watson
5 * Copyright (c) 2010-2011 Juniper Networks, Inc.
6 * All rights reserved.
7 *
8 * Portions of this software were developed by Robert N. M. Watson under
--- 22 unchanged lines hidden (view full) ---
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/netinet/udp_usrreq.c 222691 2011-06-04 16:33:06Z rwatson $");
40
41#include "opt_ipfw.h"
42#include "opt_inet.h"
43#include "opt_inet6.h"
44#include "opt_ipsec.h"
45
46#include <sys/param.h>
47#include <sys/domain.h>
--- 514 unchanged lines hidden (view full) ---
562 INP_RUNLOCK(last);
563 INP_INFO_RUNLOCK(&V_udbinfo);
564 return;
565 }
566
567 /*
568 * Locate pcb for datagram.
569 */
570 inp = in_pcblookup_mbuf(&V_udbinfo, ip->ip_src, uh->uh_sport,
571 ip->ip_dst, uh->uh_dport, INPLOOKUP_WILDCARD | INPLOOKUP_RLOCKPCB,
572 ifp, m);
573 if (inp == NULL) {
574 if (udp_log_in_vain) {
575 char buf[4*sizeof "123"];
576
577 strcpy(buf, inet_ntoa(ip->ip_dst));
578 log(LOG_INFO,
579 "Connection attempt to UDP %s:%d from %s:%d\n",
580 buf, ntohs(uh->uh_dport), inet_ntoa(ip->ip_src),
--- 1024 unchanged lines hidden ---