diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-10 01:56:50 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-10 01:56:50 +0000 |
commit | 8319335a53f5abdd63eac0dceec7e7ea3c2b2ac3 (patch) | |
tree | a0c2b7b1e1ee54c9012fcc34b228bb4e50b20e4d | |
parent | b1070a1bab3b527dae52b7742703ede194f02186 (diff) |
Allow setting address.
-rw-r--r-- | sys/net/if_enc.c | 7 |
1 files 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; |