Changeset View
Changeset View
Standalone View
Standalone View
sbin/ifconfig/af_inet6.c
Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | if (0) { | ||||
sprintf(p, "%ds", secs); | sprintf(p, "%ds", secs); | ||||
} else | } else | ||||
sprintf(result, "%lu", (unsigned long)total); | sprintf(result, "%lu", (unsigned long)total); | ||||
return(result); | return(result); | ||||
} | } | ||||
static void | static void | ||||
in6_postproc(int s, const struct afswtch *afp) | in6_postproc(int s, const struct afswtch *afp, int ifflags __unused) | ||||
{ | { | ||||
if (explicit_prefix == 0) { | if (explicit_prefix == 0) { | ||||
/* Aggregatable address architecture defines all prefixes | /* Aggregatable address architecture defines all prefixes | ||||
are 64. So, it is convenient to set prefixlen to 64 if | are 64. So, it is convenient to set prefixlen to 64 if | ||||
it is not specified. */ | it is not specified. */ | ||||
setifprefixlen("64", 0, s, afp); | setifprefixlen("64", 0, s, afp); | ||||
/* in6_getprefix("64", MASK) if MASK is available here... */ | /* in6_getprefix("64", MASK) if MASK is available here... */ | ||||
} | } | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |