summaryrefslogtreecommitdiff
path: root/sys/net/if_etherip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_etherip.c')
-rw-r--r--sys/net/if_etherip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c
index 2773685e372..653371f3e6e 100644
--- a/sys/net/if_etherip.c
+++ b/sys/net/if_etherip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_etherip.c,v 1.53 2023/12/22 23:01:50 mvs Exp $ */
+/* $OpenBSD: if_etherip.c,v 1.54 2023/12/23 10:52:54 bluhm Exp $ */
/*
* Copyright (c) 2015 Kazuya GODA <goda@openbsd.org>
*
@@ -161,6 +161,7 @@ etherip_clone_create(struct if_clone *ifc, int unit)
ifmedia_add(&sc->sc_media, IFM_ETHER | IFM_AUTO, 0, NULL);
ifmedia_set(&sc->sc_media, IFM_ETHER | IFM_AUTO);
+ if_counters_alloc(ifp);
if_attach(ifp);
ether_ifattach(ifp);