X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=blobdiff_plain;f=dummynet%2Fipfw2_mod.c;h=0da190408f6a6dbbf34bc4ed379de01eafd5aff7;hp=ff5a92ff458ef89c876569c2ac2d85486476ed70;hb=eef3abf99143fa19c5abedb6940f599a656d5135;hpb=768724c277eda3db607e356dc32945cd37ec43fc diff --git a/dummynet/ipfw2_mod.c b/dummynet/ipfw2_mod.c index ff5a92f..0da1904 100644 --- a/dummynet/ipfw2_mod.c +++ b/dummynet/ipfw2_mod.c @@ -348,7 +348,7 @@ ipfw2_queue_handler(QH_ARGS) if (m != NULL) { /* Accept. reinject and free the mbuf */ REINJECT(info, NF_STOP); - free(m, M_IPFW); + m_freem(m); } else if (ret == 0) { /* dummynet has kept the packet, will reinject later. */ } else { @@ -377,7 +377,7 @@ netisr_dispatch(int num, struct mbuf *m) struct nf_queue_entry *info = m->queue_entry; struct sk_buff *skb = m->m_skb; /* always used */ - free(m, M_IPFW); + m_freem(m); KASSERT((info != NULL), ("%s info null!\n", __FUNCTION__)); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) // XXX above 2.6.x ? __net_timestamp(skb); /* update timestamp */