• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ipf_output_func behaviour with mbuf chaning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ipf_output_func behaviour with mbuf chaning


  • Subject: ipf_output_func behaviour with mbuf chaning
  • From: Anand Choubey <email@hidden>
  • Date: Mon, 24 Feb 2014 08:23:33 -0800 (PST)

Hi,

I am developing NKE IPFilter first time in my career for 10.8/9 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 first mbuf packet ip header length only  and does not care rest of mbuf packet for ipfilter processing.

Could you please suggest me correct behaviour of ipf_output_func? 
Should mbuf_list_freem be called if only mbuf_freem is called then there is mbuf leaks? 
Should ipfilter correct second packet header?

-- 
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

  • Prev by Date: How to post question?
  • Next by Date: Re: Out of process download support
  • Previous by thread: How to post question?
  • Next by thread: unsubscribe
  • Index(es):
    • Date
    • Thread