Deleted Added
full compact
in_pcb.c (106681) in_pcb.c (109623)
1/*
2 * Copyright (c) 1982, 1986, 1991, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in_pcb.c 8.4 (Berkeley) 5/24/95
1/*
2 * Copyright (c) 1982, 1986, 1991, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in_pcb.c 8.4 (Berkeley) 5/24/95
34 * $FreeBSD: head/sys/netinet/in_pcb.c 106681 2002-11-08 23:50:32Z sam $
34 * $FreeBSD: head/sys/netinet/in_pcb.c 109623 2003-01-21 08:56:16Z alfred $
35 */
36
37#include "opt_ipsec.h"
38#include "opt_inet6.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>

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

658struct sockaddr *
659in_sockaddr(port, addr_p)
660 in_port_t port;
661 struct in_addr *addr_p;
662{
663 struct sockaddr_in *sin;
664
665 MALLOC(sin, struct sockaddr_in *, sizeof *sin, M_SONAME,
35 */
36
37#include "opt_ipsec.h"
38#include "opt_inet6.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>

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

658struct sockaddr *
659in_sockaddr(port, addr_p)
660 in_port_t port;
661 struct in_addr *addr_p;
662{
663 struct sockaddr_in *sin;
664
665 MALLOC(sin, struct sockaddr_in *, sizeof *sin, M_SONAME,
666 M_WAITOK | M_ZERO);
666 M_ZERO);
667 sin->sin_family = AF_INET;
668 sin->sin_len = sizeof(*sin);
669 sin->sin_addr = *addr_p;
670 sin->sin_port = port;
671
672 return (struct sockaddr *)sin;
673}
674

--- 477 unchanged lines hidden ---
667 sin->sin_family = AF_INET;
668 sin->sin_len = sizeof(*sin);
669 sin->sin_addr = *addr_p;
670 sin->sin_port = port;
671
672 return (struct sockaddr *)sin;
673}
674

--- 477 unchanged lines hidden ---