• 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
equivalent of sockaddr_ll? or raw packets w/no header?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

equivalent of sockaddr_ll? or raw packets w/no header?


  • Subject: equivalent of sockaddr_ll? or raw packets w/no header?
  • From: Roy Lovejoy <email@hidden>
  • Date: Wed, 27 Aug 2003 21:43:40 -0700

I'm porting some linux code that drives a hardware device via low-level ethernet frames.

What's the moral equivalent to sockaddr_ll on OSX??

the code expects to set

bindaddr.sll_family = AF_PACKET;
bindaddr.sll_protocol = kProto;
bindaddr.sll_ifindex = if_index;

I went down the path of trying to use OpenTransport, with RawIP, but I could never NOT send the header (thus my packets
that were supposed to be 18 bytes bloated to 38 bytes), even though I negotiated IP_HDRINCL and XTI_PROTOTYPE
successfully. (watching carefully in tcpdump)

Then I tried mach sockets, and though I could create & bind a SOCK_RAW, I could not write() nor sendto() successfully.

Any & all help appreciated.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: equivalent of sockaddr_ll? or raw packets w/no header?
      • From: "Duane Murphy" <email@hidden>
    • Re: equivalent of sockaddr_ll? or raw packets w/no header?
      • From: "Justin C. Walker" <email@hidden>
  • Prev by Date: Why can an NSConnection only vend objects if sendPort == receivePort?
  • Next by Date: Re: equivalent of sockaddr_ll? or raw packets w/no header?
  • Previous by thread: Why can an NSConnection only vend objects if sendPort == receivePort?
  • Next by thread: Re: equivalent of sockaddr_ll? or raw packets w/no header?
  • Index(es):
    • Date
    • Thread