summaryrefslogtreecommitdiffstats
path: root/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-08-06 13:07:15 +0000
committerRoy Marples <roy@marples.name>2015-08-06 13:07:15 +0000
commit57498a08215a09b2f4427d8e38f2358faa1a71bf (patch)
tree3f89b3ba7712db2d92da5e2218905753a3758c83 /if.h
parent288ba63cd92dae0632c2c0dab98c05ce1fedb688 (diff)
downloaddhcpcd-57498a08215a09b2f4427d8e38f2358faa1a71bf.tar.xz
Open sockets once instead of open/close each for each ioctl.
Diffstat (limited to 'if.h')
-rw-r--r--if.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/if.h b/if.h
index c3e50fec..7dd52645 100644
--- a/if.h
+++ b/if.h
@@ -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 *);