diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-15 19:38:10 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-01-15 19:38:10 +0000 |
commit | 364135132c6f449f2d86fb721a81c701507f6bea (patch) | |
tree | 342350e21d4be6781b44cc533c7ad09cdf6562c9 | |
parent | 28dac06316e9f2e98c3092d375faaa757be4caba (diff) |
Can't bind SAs to enc0
-rw-r--r-- | sys/net/if_enc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c index e76ce766773..28e595a6451 100644 --- a/sys/net/if_enc.c +++ b/sys/net/if_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_enc.c,v 1.17 2000/01/07 20:14:51 angelos Exp $ */ +/* $OpenBSD: if_enc.c,v 1.18 2000/01/15 19:38:09 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -395,6 +395,13 @@ caddr_t data; struct tdb *tdb; int s, error; + /* + * enc0 does not allow binding of SAs, as it's used for all non-bound + * SAs. + */ + if (ifp->if_softc == &encif[0]) + return EOPNOTSUPP; + switch (cmd) { case SIOCSIFADDR: |