diff --git a/sys/netinet6/ip6_fw.c b/sys/netinet6/ip6_fw.c index 8fa5838d9c2..d6b4ca2960e 100644 --- a/sys/netinet6/ip6_fw.c +++ b/sys/netinet6/ip6_fw.c @@ -738,6 +738,8 @@ got_match: break; } default: /* Send an ICMP unreachable using code */ + if (oif) + (*m)->m_pkthdr.rcvif = oif; icmp6_error(*m, ICMP6_DST_UNREACH, rule->fw_reject_code, 0); *m = NULL;