• 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
Re: need help for using BPF to write Ethernet frames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help for using BPF to write Ethernet frames


  • Subject: Re: need help for using BPF to write Ethernet frames
  • From: Benoit <email@hidden>
  • Date: Tue, 26 Jul 2005 18:14:07 +0200

Hi Justin,


It often helps if you describe the problem you are having.


well, right now my problem is that I've spent about half a day surfing the web without finding any example of code sending data to a bpf file !
For a start, I'd like to study an example and play with it, it would help me become familiar with this and avoid stupid^H^H^H^H^H^Hbasic questions.
But (!), i won't complain if you want to help me ! ;-D


So here is my 'basic' case : "Message too long".
I open the bpf, i do the BIOCSETIF iotcl...
write 100 bytes, 10 bytes, 1 byte = Message too long !

I guess I'm missing some more configuration ? But the man doesn't really help, as all things related to 'length' are stated explicitely for 'reading'.
I've tried to figure out in the libnet code how they make the initialization, but the code is way to big and I don't really have time to learn libnet just for doing this (as i will not be using libnet).
So ? Any clue ?


Thanks a lot ! :-)

Benoit.


_______________________________________________ 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: need help for using BPF to write Ethernet frames
      • From: "Justin C. Walker" <email@hidden>
References: 
 >need help for using BPF to write Ethernet frames (From: Benoit <email@hidden>)
 >Re: need help for using BPF to write Ethernet frames (From: "Justin C. Walker" <email@hidden>)

  • Prev by Date: Re: need help for using BPF to write Ethernet frames
  • Next by Date: Re: need help for using BPF to write Ethernet frames
  • Previous by thread: Re: need help for using BPF to write Ethernet frames
  • Next by thread: Re: need help for using BPF to write Ethernet frames
  • Index(es):
    • Date
    • Thread