Deleted Added
sdiff udiff text old ( 216158 ) new ( 217555 )
full compact
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2004-2009 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

52 * TODO:
53 * RDM
54 * distinguish datagram size limits from flow control limits in SEQPACKET
55 * rethink name space problems
56 * need a proper out-of-band
57 */
58
59#include <sys/cdefs.h>
60__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 216158 2010-12-03 20:39:06Z kib $");
61
62#include "opt_ddb.h"
63
64#include <sys/param.h>
65#include <sys/domain.h>
66#include <sys/fcntl.h>
67#include <sys/malloc.h> /* XXX must be before <sys/file.h> */
68#include <sys/eventhandler.h>

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

1596 xug->xug_count = unp_count;
1597 error = SYSCTL_OUT(req, xug, sizeof *xug);
1598 }
1599 free(unp_list, M_TEMP);
1600 free(xug, M_TEMP);
1601 return (error);
1602}
1603
1604SYSCTL_PROC(_net_local_dgram, OID_AUTO, pcblist, CTLFLAG_RD,
1605 (caddr_t)(long)SOCK_DGRAM, 0, unp_pcblist, "S,xunpcb",
1606 "List of active local datagram sockets");
1607SYSCTL_PROC(_net_local_stream, OID_AUTO, pcblist, CTLFLAG_RD,
1608 (caddr_t)(long)SOCK_STREAM, 0, unp_pcblist, "S,xunpcb",
1609 "List of active local stream sockets");
1610SYSCTL_PROC(_net_local_seqpacket, OID_AUTO, pcblist, CTLFLAG_RD,
1611 (caddr_t)(long)SOCK_SEQPACKET, 0, unp_pcblist, "S,xunpcb",
1612 "List of active local seqpacket sockets");
1613
1614static void
1615unp_shutdown(struct unpcb *unp)
1616{
1617 struct unpcb *unp2;
1618 struct socket *so;
1619
1620 UNP_LINK_WLOCK_ASSERT();

--- 776 unchanged lines hidden ---