• 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: Raw Ehternet Sockets on 10.1?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Raw Ehternet Sockets on 10.1?


  • Subject: Re: Raw Ehternet Sockets on 10.1?
  • From: Rich Kubota <email@hidden>
  • Date: Fri, 26 Sep 2003 13:12:35 -0700

Duane,

The one limitation that I recall from 10.1, was that there was a bug in trying to send 1500 bytes raw ethernet packets. Specifically, if the length field in the 802.3 enet header was was to 0x5DC (1500), then the packet would not be transmitted.

As for not receiving incoming packets, this is new to me. I would try the BSDLLCTest sample. Course this test sample uses BSD sockets, not CFSockets. <http://developer.apple.com/samplecode/Sample_Code/Networking/BSDLLCTest.htm>

If you try to compile the sample under 10.1, you will get compiler errors which result because the tools for this release of the OS require an updated dlil.h and ndrv.h files. I can provide these.

The sample demonstrates the use of LLC raw enet packets. In your test are you using phase 1 enet packets instead?? For the LLC sample, the NDRV_SETDMXSPEC works properly. I'd not tested the option with phase 1 packets.

rich


At 12:42 PM -0700 9/26/03, Duane Murphy wrote:
--- At Fri, 26 Sep 2003 12:21:42 -0700, Duane Murphy wrote:

We are using raw ethernet sockets to communicate to a custom hardware
device. On 10.2 everything seems to be working correctly. However, we are
not having success on 10.1.

Network traces show that packets are being successfully sent and the
device is responding. However, we never see the packets.

We are using CFSocket to manage the socket. We only use the
kCFSocketReadCallBack. We also use setsockopt with NDRV_SETDMXSPEC in
order to register to recieve packets of the correct type.

I have not been able to find specific notes that would indicate a problem
on 10.1. Our working theory is that it is one of these (setsockopt or
CFSocket) that are the problem.

Does anyone have a clue what we could be doing wrong to prevent things
from working on 10.1?

Thanks for the help,

I should add that this is on 10.1.5. We would at least like to support
10.1.5 but more previous versions would be great (up to
SystemConfiguration support).

...Duane
_______________________________________________
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.

--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
_______________________________________________
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.

References: 
 >Raw Ehternet Sockets on 10.1? (From: "Duane Murphy" <email@hidden>)
 >Re: Raw Ehternet Sockets on 10.1? (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Re: Raw Ehternet Sockets on 10.1?
  • Next by Date: Re: determining if connection is local
  • Previous by thread: Re: Raw Ehternet Sockets on 10.1?
  • Next by thread: Re: Raw Ehternet Sockets on 10.1?
  • Index(es):
    • Date
    • Thread