* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ipv6cp.c,v 1.13 2001/03/08 05:11:12 paulus Exp $
+ * $Id: ipv6cp.c,v 1.16 2002/09/14 08:10:11 etbe Exp $
*/
-#define RCSID "$Id: ipv6cp.c,v 1.13 2001/03/08 05:11:12 paulus Exp $"
+#define RCSID "$Id: ipv6cp.c,v 1.16 2002/09/14 08:10:11 etbe Exp $"
/*
* TODO:
{ "ipv6cp-use-ipaddr", o_bool, &ipv6cp_allowoptions[0].use_ip,
"Use (default) IPv4 address as interface identifier", 1 },
-#if defined(SOL2)
+#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) */
return 1;
}
+char *llv6_ntoa(eui64_t ifaceid);
+
static void
-printipaddr(opt, printer, arg)
+printifaceid(opt, printer, arg)
option_t *opt;
void (*printer) __P((void *, char *, ...));
void *arg;
{
ipv6cp_options *wo = &ipv6cp_wantoptions[0];
-#if defined(SOL2)
+ 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