54 const char *type,
const char *ip_addr,
55 const char *brd_addr,
const char *subnet_mask);
68 const char *ip_addr,
const char *brd_addr,
69 const char *subnet_mask);
int ipgen_reset_interface(const struct ipgenctx *context, const char *ifname)
Resets the interface.
Definition: ipgen.c:129
struct ipgenctx * ipgen_init_context(char *path)
Initialises the ipgen context.
Definition: ipgen.c:24
int ipgen_set_interface_ip(const struct ipgenctx *context, const char *ifname, const char *ip_addr, const char *brd_addr, const char *subnet_mask)
Set the IP address for an interface.
Definition: ipgen.c:63
int ipgen_create_interface(const struct ipgenctx *context, 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: ipgen.c:82
void ipgen_free_context(struct ipgenctx *context)
Frees the ipgen context.
Definition: ipgen.c:47
File containing the definition of the os functionalities.
#define MAX_OS_PATH_LEN
Definition: os.h:29
char ipcmd_path[MAX_OS_PATH_LEN]
Definition: ipgen.h:23