diff options
-rw-r--r-- | sys/net/if_etherip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c index 47a0e90e197..1173234c09a 100644 --- a/sys/net/if_etherip.c +++ b/sys/net/if_etherip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_etherip.c,v 1.15 2017/03/07 23:35:06 jca Exp $ */ +/* $OpenBSD: if_etherip.c,v 1.16 2017/03/27 23:49:03 jca Exp $ */ /* * Copyright (c) 2015 Kazuya GODA <goda@openbsd.org> * @@ -423,7 +423,7 @@ ip_etherip_input(struct mbuf **mp, int *offp, int proto) return IPPROTO_DONE; } - if (!etherip_allow) { + if (!etherip_allow && (m->m_flags & (M_AUTH|M_CONF)) == 0) { m_freem(m); etheripstat.etherips_pdrops++; return IPPROTO_DONE; @@ -579,7 +579,7 @@ ip6_etherip_input(struct mbuf **mp, int *offp, int proto) struct ifnet *ifp = NULL; - if (!etherip_allow) { + if (!etherip_allow && (m->m_flags & (M_AUTH|M_CONF)) == 0) { m_freem(m); etheripstat.etherips_pdrops++; return IPPROTO_NONE; |