Interface NIC (Link / IF) functions:
Definition at line 630 of file nic.c.
References nic_s::l, nic_s::nic_link::name, nic_s::nh, NIC_ERR, NIC_FATAL, and nlh_s::nic_name_tree.
Referenced by dhcpv4_control_va(), and do_dhcpv6().
void nic_foreach | ( | NLH_t | nh, | |
NIC_handler_t | handler, | |||
void * | arg | |||
) |
Calls handler with nic of each interface currently configured in the kernel and user void* arg arguments.
Definition at line 711 of file nic.c.
References nic_cbarg::cb, nic_s::nic_link::ifi, nic_s::l, nic_s::nh, nlh_s::nic_foreach_arg, and nlh_s::nic_name_tree.
struct rtnl_link_ifmap nic_get_ifmap | ( | NIC_t | ) |
struct rtnl_link_stats nic_get_stats | ( | NIC_t | ) |
call nic_update(nic) after you've made all your nic_set_*(nic,...) calls to actually update the link with netlink.
Definition at line 772 of file nic.c.
References nic_s::nic_link::change, nic_s::nic_link::cost, nlh_s::eh, nic_s::nic_link::have, nic_s::nic_link::hdr, nic_s::nic_link::ifi, nic_s::l, nic_s::nic_link::link, nic_s::nic_link::mtu, nic_s::nic_link::name, nic_s::nh, NIC_ERR, NIC_FAIL, NIC_OK, nlh_s::nl, nic_s::nic_link::priority, nic_s::nic_link::protinfo, nic_s::nic_link::qdisc, nic_s::nic_link::txqlen, and nic_s::nic_link::weight.