Deleted Added
full compact
nd6_rtr.c (78407) nd6_rtr.c (83130)
1/* $FreeBSD: head/sys/netinet6/nd6_rtr.c 78407 2001-06-18 11:37:06Z ume $ */
1/* $FreeBSD: head/sys/netinet6/nd6_rtr.c 83130 2001-09-06 02:40:43Z jlemon $ */
2/* $KAME: nd6_rtr.c,v 1.111 2001/04/27 01:37:15 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

1954 int error = 0;
1955
1956 if (ifindex < 0 || if_index < ifindex)
1957 return(EINVAL);
1958
1959 if (nd6_defifindex != ifindex) {
1960 nd6_defifindex = ifindex;
1961 if (nd6_defifindex > 0)
2/* $KAME: nd6_rtr.c,v 1.111 2001/04/27 01:37:15 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

1954 int error = 0;
1955
1956 if (ifindex < 0 || if_index < ifindex)
1957 return(EINVAL);
1958
1959 if (nd6_defifindex != ifindex) {
1960 nd6_defifindex = ifindex;
1961 if (nd6_defifindex > 0)
1962 nd6_defifp = ifindex2ifnet[nd6_defifindex];
1962 nd6_defifp = ifnet_byindex(nd6_defifindex);
1963 else
1964 nd6_defifp = NULL;
1965
1966 /*
1967 * If the Default Router List is empty, install a route
1968 * to the specified interface as default or remove the default
1969 * route when the default interface becomes canceled.
1970 * The check for the queue is actually redundant, but

--- 16 unchanged lines hidden ---
1963 else
1964 nd6_defifp = NULL;
1965
1966 /*
1967 * If the Default Router List is empty, install a route
1968 * to the specified interface as default or remove the default
1969 * route when the default interface becomes canceled.
1970 * The check for the queue is actually redundant, but

--- 16 unchanged lines hidden ---