Deleted Added
full compact
rtsock.c (134241) rtsock.c (134391)
1/*
2 * Copyright (c) 1988, 1991, 1993
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
1/*
2 * Copyright (c) 1988, 1991, 1993
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
30 * $FreeBSD: head/sys/net/rtsock.c 134241 2004-08-24 08:47:15Z roam $
30 * $FreeBSD: head/sys/net/rtsock.c 134391 2004-08-27 18:33:08Z andre $
31 */
32
33#include <sys/param.h>
34#include <sys/domain.h>
35#include <sys/kernel.h>
36#include <sys/jail.h>
37#include <sys/malloc.h>
38#include <sys/mbuf.h>

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

973 if (tag == NULL) {
974 m_freem(m);
975 return;
976 }
977 family = (unsigned short *)(tag + 1);
978 *family = sa ? sa->sa_family : 0;
979 m_tag_prepend(m, tag);
980 }
31 */
32
33#include <sys/param.h>
34#include <sys/domain.h>
35#include <sys/kernel.h>
36#include <sys/jail.h>
37#include <sys/malloc.h>
38#include <sys/mbuf.h>

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

973 if (tag == NULL) {
974 m_freem(m);
975 return;
976 }
977 family = (unsigned short *)(tag + 1);
978 *family = sa ? sa->sa_family : 0;
979 m_tag_prepend(m, tag);
980 }
981 netisr_queue(NETISR_ROUTE, m);
981 netisr_queue(NETISR_ROUTE, m); /* mbuf is free'd on failure. */
982}
983
984/*
985 * This is used in dumping the kernel table via sysctl().
986 */
987static int
988sysctl_dumpentry(struct radix_node *rn, void *vw)
989{

--- 220 unchanged lines hidden ---
982}
983
984/*
985 * This is used in dumping the kernel table via sysctl().
986 */
987static int
988sysctl_dumpentry(struct radix_node *rn, void *vw)
989{

--- 220 unchanged lines hidden ---