15 #include <netinet/in.h>
17 #include <net/ethernet.h>
25 #ifdef WITH_UCI_SERVICE
27 #elif WITH_NETLINK_SERVICE
29 #elif WITH_IP_GENERIC_SERVICE
34 #ifdef WITH_UCI_SERVICE
36 #elif WITH_NETLINK_SERVICE
37 struct nlctx *context;
38 #elif WITH_IP_GENERIC_SERVICE
100 const char *ifname,
const char *type,
const char *ip_addr,
101 const char *brd_addr,
const char *subnet_mask);
115 const char *ifname,
const char *ip_addr,
const char *brd_addr,
116 const char *subnet_mask);
File containing the definition of the allocs functionalities.
int iface_create(const struct iface_context *context, const char *brname, const char *ifname, const char *type, const char *ip_addr, const char *brd_addr, const char *subnet_mask)
Creates and interface and assigns an IP.
Definition: iface.c:225
int iface_commit(const struct iface_context *context)
Commits the interface changes.
Definition: iface.c:283
int reset_interface(const struct iface_context *context, const char *ifname)
Resets an interface.
Definition: iface.c:209
UT_array * iface_get(const char *ifname)
Get the array of struct netif_info_t for each available interface.
Definition: iface.c:101
char * iface_get_vlan(char if_buf[static IF_NAMESIZE])
Returns an exisiting WiFi interface name that supports VLAN.
Definition: iface.c:198
UT_array * iface_get_ip4(const struct iface_context *context, const char *brname, const char *ifname)
Get the IP4 addresses for a given interface.
Definition: iface.c:157
int iface_set_ip4(const struct iface_context *context, const char *brname, const char *ifname, const char *ip_addr, const char *brd_addr, const char *subnet_mask)
Sets the IP4 for a given interface.
Definition: iface.c:254
struct iface_context * iface_init_context(void *params)
Initialises the interface context.
Definition: iface.c:64
void iface_free_context(struct iface_context *context)
Initialises the interface context.
Definition: iface.c:45
File containing the definition of the ip generic interface utilities.
File containing the definition of the netlink utilities.
File containing the definition of the os functionalities.
File containing the definition of the uci utilities.