From 6740c33f1843d2031e5ab9ae51f3164035b0de22 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Thu, 1 Jul 2010 01:55:04 +0000 Subject: We have to add enc0 to the "enc" interface group manually on boot. Adopted from the loop lo0 code. --- sys/net/if_enc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net') 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 @@ -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 -- cgit v1.2.3