Home | History | Annotate | Download | only in ifconfig

Lines Matching defs:media

3 __RCSID("$NetBSD: media.c,v 1.14 2022/04/04 19:33:44 andvar Exp $");
25 #include "media.h"
39 * Media stuff. Whenever a media command is first performed, the
40 * currently select media is grabbed for this interface. If `media'
41 * is given, the current media word is modified. `mediaopt' commands
43 * current media word later.
72 static struct pstr media = PSTR_INITIALIZER1(&media, "media", setmedia, "media",
77 .k_bool = true, .k_act = "media", .k_deact = "mediainst",
80 .k_bool = true, .k_act = "media", .k_deact = "mediainst",
82 , {.k_word = "media", .k_key = "anymedia", .k_type = KW_T_BOOL,
83 .k_bool = true, .k_deact = "media", .k_altdeact = "anymedia",
84 .k_nextparser = &media.ps_parser}
89 .k_bool = true, .k_deact = "unmediaopt", .k_altdeact = "media",
96 struct pkw kwmedia = PKW_INITIALIZER(&kwmedia, "media keywords", NULL, NULL,
102 errx(EXIT_FAILURE, "unknown %s media %s: %s",
117 * media.
149 if (prop_dictionary_get(env, "media") == NULL &&
158 * Media already set up, and commands sanity-checked. Set/clear
180 data = (prop_data_t)prop_dictionary_get(env, "media");
183 /* Only one media command may be given. */
189 * craps out if `media' has not been specified.
204 /* Build the new current media word. */
207 /* Media will be set after other processing is complete. */
235 /* Media will be set after other processing is complete. */
267 /* Media will be set after other processing is complete. */
284 /* Must have already specified `media' */
292 /* Media will be set after other processing is complete. */
325 /* Media will be set after other processing is complete. */
385 * only one entry for each media type, so
433 warnx("%s: no media types?", ifname);
465 printf("\tsupported %s media:\n",
483 "\t[ media type ] [ mediaopt opts ] [ -mediaopt opts ] "