ipf_output_func behaviour
ipf_output_func behaviour
- Subject: ipf_output_func behaviour
- From: Anand Choubey <email@hidden>
- Date: Sun, 23 Feb 2014 02:42:17 -0800 (PST)
Hi,
I am developing NKE IPFilter first time in my career for 10.8 and facing undocumented behaviour.
1. ipf_output_func passing Mbuf chain but documentation does not talk about it. If EJUSTRETURN is returned then mbuf should be released by mbuf_freem_list otherwise there is memory leak.
2.
Moreover chain should be iterated individual mbuf pkt but second mbuf packet does not have correct ip length field and offset field.
After looking darwin code, it looks like ip_out_list updates ip header length only first mbuf packet and does not care rest of mbuf packet for ipfilter processing.
Could you please suggest me correct implementation of ipf_output_func?
--
Regards,
Anand Choubey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden