Searched refs:lifh (Results 1 - 7 of 7) sorted by relevance

/freebsd-12-stable/share/examples/libifconfig/
H A Dsetmtu.c45 ifconfig_handle_t *lifh; local
60 lifh = ifconfig_open();
61 if (lifh == NULL) {
66 if (ifconfig_set_mtu(lifh, ifname, mtu) == 0) {
68 ifconfig_close(lifh);
69 lifh = NULL;
74 switch (ifconfig_err_errtype(lifh)) {
79 if (ifconfig_err_ioctlreq(lifh) == SIOCSIFMTU) {
84 ifconfig_err_ioctlreq(lifh),
85 ifconfig_err_errno(lifh));
[all...]
H A Difcreate.c43 ifconfig_handle_t *lifh; local
56 lifh = ifconfig_open();
57 if (lifh == NULL) {
62 if (ifconfig_create_interface(lifh, ifname, &ifactualname) == 0) {
64 ifconfig_close(lifh);
65 lifh = NULL;
71 switch (ifconfig_err_errtype(lifh)) {
76 if (ifconfig_err_ioctlreq(lifh) == SIOCIFCREATE2) {
87 lifh));
91 ifconfig_close(lifh);
[all...]
H A Difdestroy.c43 ifconfig_handle_t *lifh; local
56 lifh = ifconfig_open();
57 if (lifh == NULL) {
62 if (ifconfig_destroy_interface(lifh, ifname) == 0) {
64 ifconfig_close(lifh);
65 lifh = NULL;
70 switch (ifconfig_err_errtype(lifh)) {
75 if (ifconfig_err_ioctlreq(lifh) == SIOCIFDESTROY) {
86 ifconfig_close(lifh);
87 lifh
[all...]
H A Difchangevlan.c47 ifconfig_handle_t *lifh; local
66 lifh = ifconfig_open();
67 if (lifh == NULL) {
72 if (ifconfig_set_vlantag(lifh, ifname, parentif, vlantag) == 0) {
74 ifconfig_close(lifh);
75 lifh = NULL;
81 switch (ifconfig_err_errtype(lifh)) {
86 if (ifconfig_err_ioctlreq(lifh) == SIOCGETVLAN) {
89 if (ifconfig_err_ioctlreq(lifh) == SIOCSETVLAN) {
100 lifh));
[all...]
H A Difcreatevlan.c46 ifconfig_handle_t *lifh; local
64 lifh = ifconfig_open();
65 if (lifh == NULL) {
70 if (ifconfig_create_interface_vlan(lifh, "vlan", &ifactualname,
73 ifconfig_close(lifh);
74 lifh = NULL;
80 switch (ifconfig_err_errtype(lifh)) {
85 if (ifconfig_err_ioctlreq(lifh) == SIOCIFCREATE2) {
96 lifh));
100 ifconfig_close(lifh);
[all...]
H A Dsetdescription.c44 ifconfig_handle_t *lifh; local
59 lifh = ifconfig_open();
60 if (lifh == NULL) {
65 if (ifconfig_get_description(lifh, ifname, &curdescr) == 0) {
71 if (ifconfig_set_description(lifh, ifname, ifdescr) == 0) {
74 switch (ifconfig_err_errtype(lifh)) {
76 err(ifconfig_err_errno(lifh), "Socket error");
80 lifh), "IOCTL(%lu) error",
81 ifconfig_err_ioctlreq(lifh));
84 err(ifconfig_err_errno(lifh), "Othe
[all...]
H A Dstatus.c58 print_carp(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
63 if (ifconfig_carp_get_info(lifh, ifa->ifa_name, carpr, CARP_MAXVHID)) {
75 print_inet4_addr(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
80 if (ifconfig_inet_get_addrinfo(lifh, ifa->ifa_name, ifa, &addr) != 0) {
105 print_inet6_addr(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
112 if (ifconfig_inet6_get_addrinfo(lifh, ifa->ifa_name, ifa, &addr) != 0) {
189 print_link_addr(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
213 print_ifaddr(ifconfig_handle_t *lifh, struct ifaddrs *ifa, void *udata __unused) argument
217 print_inet4_addr(lifh, ifa);
226 print_inet6_addr(lifh, if
240 print_nd6(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
252 print_fib(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
264 print_lagg(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
332 print_laggport(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
349 print_groups(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
380 print_media(ifconfig_handle_t *lifh, struct ifaddrs *ifa) argument
455 print_iface(ifconfig_handle_t *lifh, struct ifaddrs *ifa, void *udata __unused) argument
512 ifconfig_handle_t *lifh; local
[all...]

Completed in 102 milliseconds