#ifndef __APPLE__
strlcpy(options, "adklmnuv", sizeof(options));
#else
- strlcpy(options, "adlmruv", sizeof(options));
+ strlcpy(options, "abdlmruv", sizeof(options));
#endif
for (p = opts; p != NULL; p = p->next)
strlcat(options, p->opt, sizeof(options));
static struct ifmedia_description ifm_subtype_fddi_option_descriptions[] =
IFM_SUBTYPE_FDDI_OPTION_DESCRIPTIONS;
-#ifdef notdef
static struct ifmedia_description ifm_subtype_ieee80211_descriptions[] =
IFM_SUBTYPE_IEEE80211_DESCRIPTIONS;
-static struct ifmedia_description ifm_subtype_ieee80211_aliases[] =
- IFM_SUBTYPE_IEEE80211_ALIASES;
-
static struct ifmedia_description ifm_subtype_ieee80211_option_descriptions[] =
IFM_SUBTYPE_IEEE80211_OPTION_DESCRIPTIONS;
+#ifdef notdef
+static struct ifmedia_description ifm_subtype_ieee80211_aliases[] =
+ IFM_SUBTYPE_IEEE80211_ALIASES;
+
struct ifmedia_description ifm_subtype_ieee80211_mode_descriptions[] =
IFM_SUBTYPE_IEEE80211_MODE_DESCRIPTIONS;
{ NULL, 0 },
},
},
+#ifdef __APPLE__
+ {
+ {
+ { &ifm_subtype_shared_descriptions[0], 0 },
+ { &ifm_subtype_shared_aliases[0], 1 },
+ { &ifm_subtype_ieee80211_descriptions[0], 0 },
+ { NULL, 0 },
+ },
+ {
+ { &ifm_shared_option_descriptions[0], 0 },
+ { &ifm_subtype_ieee80211_option_descriptions[0], 1 },
+ { NULL, 0 },
+ },
+ {
+ { NULL, 0 },
+ },
+ },
+#else /* __APPLE__ */
#ifdef notdef
{
{
},
},
#endif
+#endif /* __APPLE__ */
};
static int
(long)rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);
if (rtm->rtm_flags & RTF_IFSCOPE)
(void) printf("ifscope %d, ", rtm->rtm_index);
+#ifdef RTF_IFREF
if (rtm->rtm_flags & RTF_IFREF)
(void) printf("ifref, ");
+#endif /* RTF_IFREF */
(void) printf("flags:");
bprintf(stdout, rtm->rtm_flags, routeflags);
pmsg_common(rtm);