or not HAVE_MULTILINK is defined, certain functions need to be wrapped
within HAVE_MULTILINK conditional preprocessor blocks. So far, everything
but the epdisc_to_str() function needs to be excluded when HAVE_MULTILINK
is not defined. This is because epdisc_to_str() seems to be called
unconditionally from within lcp.c, specifically from lcp_printpk().
|| ((addr) & 0xfff00000) == 0xac100000 /* 172.16.x.x */ \
|| ((addr) & 0xffff0000) == 0xc0a80000) /* 192.168.x.x */
|| ((addr) & 0xfff00000) == 0xac100000 /* 172.16.x.x */ \
|| ((addr) & 0xffff0000) == 0xc0a80000) /* 192.168.x.x */
void
mp_check_options()
{
void
mp_check_options()
{
epdisc_to_str(&wo->endpoint));
}
}
epdisc_to_str(&wo->endpoint));
}
}
+#endif /* HAVE_MULTILINK */
/*
* Make a new bundle or join us to an existing bundle
* if we are doing multilink.
/*
* Make a new bundle or join us to an existing bundle
* if we are doing multilink.
script_setenv("BUNDLE", bundle_id + 7, 1);
return 0;
}
script_setenv("BUNDLE", bundle_id + 7, 1);
return 0;
}
+#endif /* HAVE_MULTILINK */
+#ifdef /* HAVE_MULTILINK */
static int
get_default_epdisc(ep)
struct epdisc *ep;
static int
get_default_epdisc(ep)
struct epdisc *ep;
+#endif /* HAVE_MULTILINK */
/*
* epdisc_to_str - make a printable string from an endpoint discriminator.
/*
* epdisc_to_str - make a printable string from an endpoint discriminator.
static int hexc_val(int c)
{
if (c >= 'a')
static int hexc_val(int c)
{
if (c >= 'a')
return c - 'A' + 10;
return c - '0';
}
return c - 'A' + 10;
return c - '0';
}
+#endif /* HAVE_MULTILINK */
int
str_to_epdisc(ep, str)
struct epdisc *ep;
int
str_to_epdisc(ep, str)
struct epdisc *ep;
dbglog("str_to_epdisc -> %s", epdisc_to_str(ep));
return 1;
}
dbglog("str_to_epdisc -> %s", epdisc_to_str(ep));
return 1;
}
+#endif /* HAVE_MULTILINK */
+