PPP, from PPPD upstream, Eliminate some unnecessary ifdefs

This commit is contained in:
Sylvain Rochet 2014-12-24 23:12:30 +01:00
parent e39d012312
commit 369e9fbf08
4 changed files with 21 additions and 10 deletions

View File

@ -163,9 +163,7 @@ typedef struct ipv6cp_options {
unsigned int opt_remote :1; /* histoken set by option */
unsigned int use_ip :1; /* use IP as interface identifier */
#if 0
#if defined(SOL2) || defined(__linux__)
unsigned int use_persistent :1; /* use uniquely persistent value for address */
#endif /* defined(SOL2) */
#endif
unsigned int neg_vj :1; /* Van Jacobson Compression? */
unsigned int :1; /* 1 bit of padding to round out to 8 bits */

View File

@ -324,3 +324,21 @@ Low level serial port, not in the port.
b04d2dc6df5c6b5650fea44250d58757ee3dac4a
Reimplemented.
2014-03-09 - pppol2tp: Connect up/down events to notifiers and add IPv6 ones
fafbe50251efc7d6b4a8be652d085316e112b34f
Not in the port.
2014-03-09 - pppd: Add declarations to eliminate compile warnings
50967962addebe15c7a7e63116ff46a0441dc464
We are handling compilation warnings on our own
2014-03-09 - pppd: Eliminate some unnecessary ifdefs
de8da14d845ee6db9236ccfddabf1d8ebf045ddb
We mostly did that previously. Anyway, merged 2014-12-24.

View File

@ -237,10 +237,10 @@ static option_t ipcp_option_list[] = {
{ "ipcp-no-address", o_bool, &ipcp_wantoptions[0].neg_addr,
"Disable IP-Address usage", OPT_A2CLR,
&ipcp_allowoptions[0].neg_addr },
#ifdef __linux__
{ "noremoteip", o_bool, &noremoteip,
"Allow peer to have no IP address", 1 },
#endif
{ "nosendip", o_bool, &ipcp_wantoptions[0].neg_addr,
"Don't send our IP address to peer", OPT_A2CLR,
&ipcp_wantoptions[0].old_addrs},

View File

@ -144,8 +144,7 @@
* Proxy Neighbour Discovery.
*
* Better defines for selecting the ordering of
* interface up / set address. (currently checks for __linux__,
* since SVR4 && (SNI || __USLC__) didn't work properly)
* interface up / set address.
*/
#include "lwip/opt.h"
@ -232,10 +231,8 @@ static option_t ipv6cp_option_list[] = {
{ "ipv6cp-use-ipaddr", o_bool, &ipv6cp_allowoptions[0].use_ip,
"Use (default) IPv4 address as interface identifier", 1 },
#if defined(SOL2) || defined(__linux__)
{ "ipv6cp-use-persistent", o_bool, &ipv6cp_wantoptions[0].use_persistent,
"Use uniquely-available persistent value for link local address", 1 },
#endif /* defined(SOL2) */
{ "ipv6cp-restart", o_int, &ipv6cp_fsm[0].timeouttime,
"Set timeout for IPv6CP", OPT_PRIO },
@ -1047,7 +1044,6 @@ static void ipv6_check_options() {
if (!ipv6cp_protent.enabled_flag)
return;
#if defined(SOL2) || defined(__linux__)
/*
* Persistent link-local id is only used when user has not explicitly
* configure/hard-code the id
@ -1067,7 +1063,6 @@ static void ipv6_check_options() {
wo->opt_local = 1;
}
}
#endif
if (!wo->opt_local) { /* init interface identifier */
if (wo->use_ip && eui64_iszero(wo->ourid)) {