Deleted Added
full compact
rtsock.c (102052) rtsock.c (102412)
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

--- 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 * @(#)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

--- 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 * @(#)rtsock.c 8.7 (Berkeley) 10/12/95
34 * $FreeBSD: head/sys/net/rtsock.c 102052 2002-08-18 07:05:00Z sobomax $
34 * $FreeBSD: head/sys/net/rtsock.c 102412 2002-08-25 13:23:09Z charnier $
35 */
36
37
38#include <sys/param.h>
39#include <sys/domain.h>
40#include <sys/kernel.h>
41#include <sys/jail.h>
42#include <sys/malloc.h>

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

438 }
439 }
440 rt_setmetrics(rtm->rtm_inits, &rtm->rtm_rmx,
441 &rt->rt_rmx);
442 if (rt->rt_ifa && rt->rt_ifa->ifa_rtrequest)
443 rt->rt_ifa->ifa_rtrequest(RTM_ADD, rt, &info);
444 if (genmask)
445 rt->rt_genmask = genmask;
35 */
36
37
38#include <sys/param.h>
39#include <sys/domain.h>
40#include <sys/kernel.h>
41#include <sys/jail.h>
42#include <sys/malloc.h>

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

438 }
439 }
440 rt_setmetrics(rtm->rtm_inits, &rtm->rtm_rmx,
441 &rt->rt_rmx);
442 if (rt->rt_ifa && rt->rt_ifa->ifa_rtrequest)
443 rt->rt_ifa->ifa_rtrequest(RTM_ADD, rt, &info);
444 if (genmask)
445 rt->rt_genmask = genmask;
446 /*
447 * Fall into
448 */
446 /* FALLTHROUGH */
449 case RTM_LOCK:
450 rt->rt_rmx.rmx_locks &= ~(rtm->rtm_inits);
451 rt->rt_rmx.rmx_locks |=
452 (rtm->rtm_inits & rtm->rtm_rmx.rmx_locks);
453 break;
454 }
455 break;
456

--- 605 unchanged lines hidden ---
447 case RTM_LOCK:
448 rt->rt_rmx.rmx_locks &= ~(rtm->rtm_inits);
449 rt->rt_rmx.rmx_locks |=
450 (rtm->rtm_inits & rtm->rtm_rmx.rmx_locks);
451 break;
452 }
453 break;
454

--- 605 unchanged lines hidden ---