diff options
| author | Roy Marples <roy@marples.name> | 2015-08-06 13:07:15 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-08-06 13:07:15 +0000 |
| commit | 57498a08215a09b2f4427d8e38f2358faa1a71bf (patch) | |
| tree | 3f89b3ba7712db2d92da5e2218905753a3758c83 /if.h | |
| parent | 288ba63cd92dae0632c2c0dab98c05ce1fedb688 (diff) | |
| download | dhcpcd-57498a08215a09b2f4427d8e38f2358faa1a71bf.tar.xz | |
Open sockets once instead of open/close each for each ioctl.
Diffstat (limited to 'if.h')
| -rw-r--r-- | if.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -93,16 +93,17 @@ struct interface *if_find(struct if_head *, const char *); struct interface *if_findindex(struct if_head *, unsigned int); void if_sortinterfaces(struct dhcpcd_ctx *); void if_free(struct interface *); -int if_domtu(const char *, short int); -#define if_getmtu(iface) if_domtu(iface, 0) -#define if_setmtu(iface, mtu) if_domtu(iface, mtu) +int if_domtu(const struct interface *, short int); +#define if_getmtu(ifp) if_domtu((ifp), 0) +#define if_setmtu(ifp, mtu) if_domtu((ifp), (mtu)) int if_carrier(struct interface *); /* The below functions are provided by if-KERNEL.c */ int if_conf(struct interface *); int if_init(struct interface *); int if_getssid(struct interface *); -int if_vimaster(const char *); +int if_vimaster(const struct dhcpcd_ctx *ctx, const char *); +int if_opensockets(struct dhcpcd_ctx *); int if_openlinksocket(void); int if_managelink(struct dhcpcd_ctx *); |
