Changeset View
Changeset View
Standalone View
Standalone View
lib/libifconfig/libifconfig.h
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
int ifconfig_media_get_mediareq(ifconfig_handle_t *h, const char *name, | int ifconfig_media_get_mediareq(ifconfig_handle_t *h, const char *name, | ||||
struct ifmediareq **ifmr); | struct ifmediareq **ifmr); | ||||
const char *ifconfig_media_get_type(int ifmw); | const char *ifconfig_media_get_type(int ifmw); | ||||
const char *ifconfig_media_get_subtype(int ifmw); | const char *ifconfig_media_get_subtype(int ifmw); | ||||
const char *ifconfig_media_get_status(const struct ifmediareq *ifmr); | const char *ifconfig_media_get_status(const struct ifmediareq *ifmr); | ||||
void ifconfig_media_get_options_string(int ifmw, char *buf, size_t buflen); | void ifconfig_media_get_options_string(int ifmw, char *buf, size_t buflen); | ||||
/** Retrieve the reason the interface is down | |||||
* @param h An open ifconfig state object | |||||
* @param name The interface name | |||||
* @param ifdr Return argument. | |||||
* @return 0 on success, nonzero on failure | |||||
*/ | |||||
int ifconfig_media_get_downreason(ifconfig_handle_t *h, const char *name, | |||||
struct ifdownreason *ifdr); | |||||
int ifconfig_carp_get_info(ifconfig_handle_t *h, const char *name, | int ifconfig_carp_get_info(ifconfig_handle_t *h, const char *name, | ||||
struct carpreq *carpr, int ncarpr); | struct carpreq *carpr, int ncarpr); | ||||
/** Retrieve additional information about an inet address | /** Retrieve additional information about an inet address | ||||
* @param h An open ifconfig state object | * @param h An open ifconfig state object | ||||
* @param name The interface name | * @param name The interface name | ||||
* @param ifa Pointer to the the address structure of interest | * @param ifa Pointer to the the address structure of interest | ||||
* @param addr Return argument. It will be filled with additional information | * @param addr Return argument. It will be filled with additional information | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |