Deleted Added
full compact
tcp_usrreq.c (169318) tcp_usrreq.c (169454)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2006-2007 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

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

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2006-2007 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

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

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
32 * $FreeBSD: head/sys/netinet/tcp_usrreq.c 169318 2007-05-06 16:04:36Z andre $
32 * $FreeBSD: head/sys/netinet/tcp_usrreq.c 169454 2007-05-10 15:58:48Z rwatson $
33 */
34
35#include "opt_ddb.h"
36#include "opt_inet.h"
37#include "opt_inet6.h"
38#include "opt_tcpdebug.h"
39
40#include <sys/param.h>

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

689/*
690 * This is the wrapper function for in_setsockaddr. We just pass down
691 * the pcbinfo for in_setsockaddr to lock. We don't want to do the locking
692 * here because in_setsockaddr will call malloc and can block.
693 */
694static int
695tcp_sockaddr(struct socket *so, struct sockaddr **nam)
696{
33 */
34
35#include "opt_ddb.h"
36#include "opt_inet.h"
37#include "opt_inet6.h"
38#include "opt_tcpdebug.h"
39
40#include <sys/param.h>

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

689/*
690 * This is the wrapper function for in_setsockaddr. We just pass down
691 * the pcbinfo for in_setsockaddr to lock. We don't want to do the locking
692 * here because in_setsockaddr will call malloc and can block.
693 */
694static int
695tcp_sockaddr(struct socket *so, struct sockaddr **nam)
696{
697
697 return (in_setsockaddr(so, nam));
698}
699
700/*
701 * This is the wrapper function for in_setpeeraddr. We just pass down
702 * the pcbinfo for in_setpeeraddr to lock.
703 */
704static int
705tcp_peeraddr(struct socket *so, struct sockaddr **nam)
706{
698 return (in_setsockaddr(so, nam));
699}
700
701/*
702 * This is the wrapper function for in_setpeeraddr. We just pass down
703 * the pcbinfo for in_setpeeraddr to lock.
704 */
705static int
706tcp_peeraddr(struct socket *so, struct sockaddr **nam)
707{
708
707 return (in_setpeeraddr(so, nam));
708}
709
710/*
711 * Mark the connection as being incapable of further output.
712 */
713static int
714tcp_usr_shutdown(struct socket *so)

--- 1178 unchanged lines hidden ---
709 return (in_setpeeraddr(so, nam));
710}
711
712/*
713 * Mark the connection as being incapable of further output.
714 */
715static int
716tcp_usr_shutdown(struct socket *so)

--- 1178 unchanged lines hidden ---