equivalent of sockaddr_ll? or raw packets w/no header?
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.