From 8319335a53f5abdd63eac0dceec7e7ea3c2b2ac3 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Mon, 10 Apr 2000 01:56:50 +0000 Subject: Allow setting address. --- sys/net/if_enc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c index 367428ce125..e2f926a08d3 100644 --- a/sys/net/if_enc.c +++ b/sys/net/if_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_enc.c,v 1.22 2000/04/08 16:55:58 angelos Exp $ */ +/* $OpenBSD: if_enc.c,v 1.23 2000/04/10 01:56:49 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -379,7 +379,7 @@ caddr_t data; struct ifsa *ifsa = (struct ifsa *) data; struct proc *prc = curproc; /* XXX */ struct tdb *tdb; - int s, error; + int s, error = 0; /* * enc0 does not allow binding of SAs, as it's used for all non-bound @@ -391,7 +391,8 @@ caddr_t data; switch (cmd) { case SIOCSIFADDR: - return EOPNOTSUPP; + case SIOCSIFDSTADDR: + break; case SIOCGENCSA: ifsa->sa_spi = enc->sc_spi; -- cgit v1.2.3