Deleted Added
full compact
in6_src.c (269306) in6_src.c (270927)
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in_pcb.c 8.2 (Berkeley) 1/4/94
61 */
62
63#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
58 * SUCH DAMAGE.
59 *
60 * @(#)in_pcb.c 8.2 (Berkeley) 1/4/94
61 */
62
63#include <sys/cdefs.h>
64__FBSDID("$FreeBSD: head/sys/netinet6/in6_src.c 269306 2014-07-30 15:08:12Z ae $");
64__FBSDID("$FreeBSD: head/sys/netinet6/in6_src.c 270927 2014-09-01 09:30:34Z ae $");
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68#include "opt_mpath.h"
69
70#include <sys/param.h>
71#include <sys/systm.h>
72#include <sys/lock.h>

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

443 (ia->ia_ifp->if_flags & IFF_UP))
444 REPLACE(8);
445
446 /*
447 * Rule 9: prefer address with better virtual status.
448 */
449 if (ifa_preferred(&ia_best->ia_ifa, &ia->ia_ifa))
450 REPLACE(9);
65
66#include "opt_inet.h"
67#include "opt_inet6.h"
68#include "opt_mpath.h"
69
70#include <sys/param.h>
71#include <sys/systm.h>
72#include <sys/lock.h>

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

443 (ia->ia_ifp->if_flags & IFF_UP))
444 REPLACE(8);
445
446 /*
447 * Rule 9: prefer address with better virtual status.
448 */
449 if (ifa_preferred(&ia_best->ia_ifa, &ia->ia_ifa))
450 REPLACE(9);
451 if (ifa_preferred(&ia->ia_ifa, &ia_best->ia_ifa))
452 NEXT(9);
451
452 /*
453 * Rule 14: Use longest matching prefix.
454 * Note: in the address selection draft, this rule is
455 * documented as "Rule 8". However, since it is also
456 * documented that this rule can be overridden, we assign
457 * a large number so that it is easy to assign smaller numbers
458 * to more preferred rules.

--- 731 unchanged lines hidden ---
453
454 /*
455 * Rule 14: Use longest matching prefix.
456 * Note: in the address selection draft, this rule is
457 * documented as "Rule 8". However, since it is also
458 * documented that this rule can be overridden, we assign
459 * a large number so that it is easy to assign smaller numbers
460 * to more preferred rules.

--- 731 unchanged lines hidden ---