summaryrefslogtreecommitdiff
path: root/sbin/dhclient/privsep.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/privsep.h')
-rw-r--r--sbin/dhclient/privsep.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/sbin/dhclient/privsep.h b/sbin/dhclient/privsep.h
index 7787936a1e2..5baf40bc33a 100644
--- a/sbin/dhclient/privsep.h
+++ b/sbin/dhclient/privsep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.h,v 1.32 2016/09/02 15:44:26 mpi Exp $ */
+/* $OpenBSD: privsep.h,v 1.33 2017/03/08 20:11:00 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -18,14 +18,18 @@
enum imsg_code {
IMSG_NONE,
+ IMSG_HUP,
+ IMSG_WRITE_OPTION_DB,
IMSG_DELETE_ADDRESS,
IMSG_ADD_ADDRESS,
IMSG_FLUSH_ROUTES,
IMSG_ADD_ROUTE,
IMSG_SET_INTERFACE_MTU,
- IMSG_HUP,
- IMSG_WRITE_RESOLV_CONF,
- IMSG_WRITE_OPTION_DB
+ IMSG_WRITE_RESOLV_CONF
+};
+
+struct imsg_hup {
+ struct in_addr addr;
};
struct imsg_delete_address {
@@ -54,19 +58,15 @@ struct imsg_set_interface_mtu {
int mtu;
};
-struct imsg_hup {
- struct in_addr addr;
-};
-
void dispatch_imsg(struct interface_info *, struct imsgbuf *);
+void priv_write_option_db(struct imsg *);
+void priv_write_file(char *, int, mode_t, u_int8_t *, size_t);
+void priv_cleanup(struct interface_info *, struct imsg_hup *);
void priv_delete_address(struct interface_info *,
struct imsg_delete_address *);
void priv_add_address(struct interface_info *, struct imsg_add_address *);
void priv_flush_routes(struct interface_info *, struct imsg_flush_routes *);
void priv_add_route(struct interface_info *, struct imsg_add_route *);
-void priv_cleanup(struct interface_info *, struct imsg_hup *);
void priv_set_interface_mtu(struct interface_info *,
struct imsg_set_interface_mtu *);
void priv_write_resolv_conf(struct interface_info *, struct imsg *);
-void priv_write_option_db(struct imsg *);
-void priv_write_file(char *, int, mode_t, u_int8_t *, size_t);