diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index 00e34a236a99..f3a604255ddd 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -482,8 +482,6 @@ stf_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, } M_PREPEND(m, sizeof(struct ip), M_NOWAIT); - if (m && m->m_len < sizeof(struct ip)) - m = m_pullup(m, sizeof(struct ip)); if (m == NULL) { if_inc_counter(ifp, IFCOUNTER_OERRORS, 1); return ENOBUFS; diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 0105479dcf54..6ef0d445b402 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -363,8 +363,6 @@ icmp6_error(struct mbuf *m, int type, int code, int param) preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr); M_PREPEND(m, preplen, M_NOWAIT); /* FIB is also copied over. */ - if (m && m->m_len < preplen) - m = m_pullup(m, preplen); if (m == NULL) { nd6log((LOG_DEBUG, "ENOBUFS in icmp6_error %d\n", __LINE__)); return;