• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Next by Date: Background tasks completing without notification
  • Next by thread: Background tasks completing without notification
  • Index(es):
    • Date
    • Thread