Fix the comment block that has the nice
table to really have the nice table :-) MFC after: 1 month
This commit is contained in:
parent
44fbe46280
commit
753358d725
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210600
@ -2186,21 +2186,31 @@ sctp_is_ifa_addr_preferred(struct sctp_ifa *ifa,
|
||||
/* dest_is_priv is true if destination is a private address */
|
||||
/* dest_is_loop is true if destination is a loopback addresses */
|
||||
|
||||
/*
|
||||
/**
|
||||
* Here we determine if its a preferred address. A preferred address
|
||||
* means it is the same scope or higher scope then the destination.
|
||||
* L = loopback, P = private, G = global
|
||||
* ----------------------------------------- src | dest | result
|
||||
* ---------------------------------------- L | L | yes
|
||||
* ----------------------------------------- P | L |
|
||||
* yes-v4 no-v6 ----------------------------------------- G |
|
||||
* L | yes-v4 no-v6 ----------------------------------------- L
|
||||
* | P | no ----------------------------------------- P |
|
||||
* P | yes ----------------------------------------- G |
|
||||
* P | no ----------------------------------------- L | G
|
||||
* | no ----------------------------------------- P | G |
|
||||
* no ----------------------------------------- G | G |
|
||||
* yes -----------------------------------------
|
||||
* -----------------------------------------
|
||||
* src | dest | result
|
||||
* ----------------------------------------
|
||||
* L | L | yes
|
||||
* -----------------------------------------
|
||||
* P | L | yes-v4 no-v6
|
||||
* -----------------------------------------
|
||||
* G | L | yes-v4 no-v6
|
||||
* -----------------------------------------
|
||||
* L | P | no
|
||||
* -----------------------------------------
|
||||
* P | P | yes
|
||||
* -----------------------------------------
|
||||
* G | P | no
|
||||
* -----------------------------------------
|
||||
* L | G | no
|
||||
* -----------------------------------------
|
||||
* P | G | no
|
||||
* -----------------------------------------
|
||||
* G | G | yes
|
||||
* -----------------------------------------
|
||||
*/
|
||||
|
||||
if (ifa->address.sa.sa_family != fam) {
|
||||
|
Loading…
Reference in New Issue
Block a user