diff options
author | qingli <qingli@FreeBSD.org> | 2009-07-27 17:08:06 +0000 |
---|---|---|
committer | qingli <qingli@FreeBSD.org> | 2009-07-27 17:08:06 +0000 |
commit | 8c1899d9347988f10f8675cc62ab08f26bb9f2d7 (patch) | |
tree | ba2ac82153b664af47ac11ce57edbca618088bf7 /sys/net/if_var.h | |
parent | da6cb6e20c0e16d77eafa2b88d2b87b5544b7107 (diff) | |
download | FreeBSD-src-8c1899d9347988f10f8675cc62ab08f26bb9f2d7.zip FreeBSD-src-8c1899d9347988f10f8675cc62ab08f26bb9f2d7.tar.gz |
This patch does the following:
- Allow loopback route to be installed for address assigned to
interface of IFF_POINTOPOINT type.
- Install loopback route for an IPv4 interface addreess when the
"useloopback" sysctl variable is enabled. Similarly, install
loopback route for an IPv6 interface address when the sysctl variable
"nd6_useloopback" is enabled. Deleting loopback routes for interface
addresses is unconditional in case these sysctl variables were
disabled after an interface address has been assigned.
Reviewed by: bz
Approved by: re
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 33349fc..428645f 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -784,11 +784,13 @@ VNET_DECLARE(struct ifnethead, ifnet); VNET_DECLARE(struct ifgrouphead, ifg_head); VNET_DECLARE(int, if_index); VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */ +VNET_DECLARE(int, useloopback); #define V_ifnet VNET(ifnet) #define V_ifg_head VNET(ifg_head) #define V_if_index VNET(if_index) #define V_loif VNET(loif) +#define V_useloopback VNET(useloopback) extern int ifqmaxlen; |