summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r--sbin/ifconfig/ifconfig.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 6f0dd0e..4819679 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -51,7 +51,6 @@ static const char rcsid[] =
#include <net/ethernet.h>
#include <net/if.h>
-#include <net/if_gre.h>
#include <net/if_var.h>
#include <net/if_dl.h>
#include <net/if_types.h>
@@ -750,18 +749,6 @@ setifmtu(const char *val, int dummy __unused, int s,
}
static void
-setifgrekey(const char *val, int dummy __unused, int s,
- const struct afswtch *afp)
-{
- uint32_t grekey = atol(val);
-
- strncpy(ifr.ifr_name, name, sizeof (ifr.ifr_name));
- ifr.ifr_data = (caddr_t)&grekey;
- if (ioctl(s, GRESKEY, (caddr_t)&ifr) < 0)
- warn("ioctl (set grekey)");
-}
-
-static void
setifname(const char *val, int dummy __unused, int s,
const struct afswtch *afp)
{
@@ -876,12 +863,6 @@ status(const struct afswtch *afp, const struct sockaddr_dl *sdl,
if (ioctl(s, SIOCGIFSTATUS, &ifs) == 0)
printf("%s", ifs.ascii);
- int grekey = 0;
- ifr.ifr_data = (caddr_t)&grekey;
- if (ioctl(s, GREGKEY, &ifr) == 0)
- if (grekey != 0)
- printf("\tgrekey: %d\n", grekey);
-
close(s);
return;
}
@@ -1053,7 +1034,6 @@ static struct cmd basic_cmds[] = {
DEF_CMD("noicmp", IFF_LINK1, setifflags),
DEF_CMD_ARG("mtu", setifmtu),
DEF_CMD_ARG("name", setifname),
- DEF_CMD_ARG("grekey", setifgrekey),
};
static __constructor void
OpenPOWER on IntegriCloud