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

NKE packet insertion.


  • Subject: NKE packet insertion.
  • From: Lasaro Camargos <email@hidden>
  • Date: Mon, 2 Jan 2006 11:01:23 +0100


Hi everybody.

I am trying to write a NKE that make my XServe box an ethernet bridge. I know it's a very silly way of wasting such a box, but I really need it.
I am doing it as an Interface Filter. In doing so I face the following problems:


- Lack of examples. Can someone provide me with a correct/simple Interface Filter that successfully inserts packets in the network?
I wrote a code that gets the frames but I have problems injecting them as I explain below.


- How to scrutiny the frame I got on my input function? If I want the filter some frames, where to look for such information? Are there any helper functions to extract IP headers, for example, from a Ethernet frame (if the frame has an IP packet, of course)?

- How to inject frames? I am using "ifnet_output_raw(interface, protocol, mbuf)" to inject a copy packets received on one ethernet into the others. The documentation says that if the function do not succeed, mbuf will be freed. Does that mean that if it succeeds mbuf won't be freed? Why should mbuf be freed in case of an error? In that situation I could want to change something in the packet and resend it. And if the packet was sent, why should I keep it?

Thanks in advance,
and happy new year.

LJ

_______________________________________________
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


  • Follow-Ups:
    • Re: NKE packet insertion.
      • From: "Peter Sichel" <email@hidden>
  • Next by Date: Re: NKE packet insertion.
  • Next by thread: Re: NKE packet insertion.
  • Index(es):
    • Date
    • Thread