Re: Raw Ehternet Sockets on 10.1?
Re: Raw Ehternet Sockets on 10.1?
- Subject: Re: Raw Ehternet Sockets on 10.1?
- From: "Duane Murphy" <email@hidden>
- Date: Tue, 30 Sep 2003 13:47:16 -0700
More Information.
I changed BSDLLCTest to send only 1000 byte packets. Compiled on 10.2.6
and tested. Everything appears to work OK.
If I switch the recieving machine to 10.1.5 (sender is still 10.2.6) and
do the test, a DSAP of 0xE0 (the default) works fine. If I switch the
DSAP to 0XAA, indicating SNAP, the 10.1.5 recieving machine wont recieve
anything. I can view the packets (using Etherpeek) and see them hit the
wire. Note that this same test works fine under 10.2.6.
I dont believe that this is a symptom of the PowerBook G3 I am using as
we reproduced this symptom with a G3 tower as well.
Can you confirm that this problem occurs for you also and let me know
what the possible solution is?
Thanks for your help on this important situation.
...Duane
--- At Mon, 29 Sep 2003 14:32:35 -0700, Duane Murphy wrote:
>
--- At Mon, 29 Sep 2003 12:50:28 -0700, Rich Kubota wrote:
>
>
>At 11:47 AM -0700 9/29/03, Duane Murphy wrote:
>
>>Thanks for this vote of confidence Rich. Unfortunatelly I tried
>
>>BSDLLCTest between 10.2 and 10.1.5 and the 10.1.5 machine couldnot
>
>>receive any packets.
>
>>
>
>>This seems to be the same problem I am experiencing in my code.
>
>>
>
>>I did the following tests:
>
>>
>
>>10.2.3 Sending -> 10.2.6 Receiving, this worked fine.
>
>>10.2.3 Sending -> 10.1.5 Receiving, does not work
>
>>
>
>>The code shown is the leaf of three functions that do the right thing for
>
>>each protocol type. In the case we are having trouble with, we are doing
>
>>SNAP. We also do ETHERTYPE as well (ARP). We havent tried this on
>
>>ETHERTYPE yet.
>
>>
>
>>The receiving machine is a PowerBook G3 (Firewire; aka Pismo) in case
>
>>that matters. The tests were done on Ethernet (built-in), not AirPort.
>
>>
>
>>I would appreciate any additional information concerning this problem.
>
>>
>
>>Thanks,
>
>> ...Duane
>
>>
>
>Duane,
>
>
>
>I used a 10.1.5 target system and encountered the same problem which
>
>you described, using the BSDLLCTest program. then I remembered, that
>
>the problem with setting the length field in the Ethernet header. I
>
>recall that when the length field was set to 1500 or greater, the
>
>receiving side would not receive the packet. Sure enough, when I set
>
>the length field for 1499, I could receive LLC packets. In your
>
>case, if you are sending out ARP packets, the length field, or in
>
>this case, the protocol type field is set to 0x0806, which is greater
>
>than 1500 decimal. I need to check, but you may have encountered a
>
>problem which existed in 10.1.x.
>
>
Thanks for the information. I did some additional testing. The problem
>
area that we are seeing is with SNAP packets (ARP has a different problem).
>
>
I checked the lengths to make sure. The outgoing packet is only 48 bytes.
>
The incoming packet is only 78 bytes. (of course recorded in the ethernet
>
"type" field). These are well under the lengths.
>
>
The same code works under 10.2 so I am at a loss.
...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.