summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2010-07-01 01:55:04 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2010-07-01 01:55:04 +0000
commit6740c33f1843d2031e5ab9ae51f3164035b0de22 (patch)
treeb510f042ff6e46bef8f957b64857598dc81dccc1 /sys
parentfe6905360db9a75c12cccb97100615bb7718b4c2 (diff)
We have to add enc0 to the "enc" interface group manually on boot.
Adopted from the loop lo0 code.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_enc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c
index dad2acf48d3..c0ac2545299 100644
--- a/sys/net/if_enc.c
+++ b/sys/net/if_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_enc.c,v 1.49 2010/06/29 21:28:37 reyk Exp $ */
+/* $OpenBSD: if_enc.c,v 1.50 2010/07/01 01:55:03 reyk Exp $ */
/*
* Copyright (c) 2010 Reyk Floeter <reyk@vantronix.net>
@@ -89,6 +89,8 @@ enc_clone_create(struct if_clone *ifc, int unit)
ifc->ifc_name, unit);
if_attach(ifp);
+ if (unit == 0)
+ if_addgroup(ifp, ifc->ifc_name);
if_alloc_sadl(ifp);
#if NBPFILTER > 0