summaryrefslogtreecommitdiff
path: root/sbin/dhclient/kroute.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-07-21 18:57:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-07-21 18:57:56 +0000
commitfdf653f5d11e0cad7f5173cad6a3e174286a8090 (patch)
treeae768723dc28aa10e2b77dfb648fabb306a68e9b /sbin/dhclient/kroute.c
parent20de92f9ed3291d21dd5e60815ab78f13bbf94ef (diff)
s/set_interface_mtu/set_mtu/g
Diffstat (limited to 'sbin/dhclient/kroute.c')
-rw-r--r--sbin/dhclient/kroute.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index 39dfdfc22c9..ba9561e46a5 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.110 2017/07/17 17:53:59 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.111 2017/07/21 18:57:55 krw Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -609,29 +609,28 @@ priv_delete_address(char *name, int ioctlfd, struct imsg_delete_address *imsg)
}
/*
- * [priv_]set_interface_mtu is the equivalent of
+ * [priv_]set_mtu is the equivalent of
*
* ifconfig <if> mtu <mtu>
*/
void
-set_interface_mtu(int mtu)
+set_mtu(int mtu)
{
- struct imsg_set_interface_mtu imsg;
- int rslt;
+ struct imsg_set_mtu imsg;
+ int rslt;
imsg.mtu = mtu;
- rslt = imsg_compose(unpriv_ibuf, IMSG_SET_INTERFACE_MTU, 0, 0, -1,
+ rslt = imsg_compose(unpriv_ibuf, IMSG_SET_MTU, 0, 0, -1,
&imsg, sizeof(imsg));
if (rslt == -1)
- log_warn("set_interface_mtu: imsg_compose");
+ log_warn("set_mtu: imsg_compose");
- flush_unpriv_ibuf("set_interface_mtu");
+ flush_unpriv_ibuf("set_mtu");
}
void
-priv_set_interface_mtu(char *name, int ioctlfd,
- struct imsg_set_interface_mtu *imsg)
+priv_set_mtu(char *name, int ioctlfd, struct imsg_set_mtu *imsg)
{
struct ifreq ifr;