Networking Forums

Networking Forums > Computer Networking > Linux Networking > captured ethernet frames

Reply
Thread Tools Display Modes

captured ethernet frames

 
 
Tom Brown
Guest
Posts: n/a

 
      10-29-2004, 12:46 AM
I send out my own ethernet broadcast frame then capture it on two
different devices. One device is a pc; the other device is a wireless
access point. The source address is a little different in the capture
on the pc than on the wireless access point. I was wondering why. Here
is what I send out:

dest addr source addr type data
030000000007 000475c27401 3842 0000000001008104...

This is what I capture on the wireless access point:

dest addr source addr type data
030000000007 000475c27401 3842 0000000001008104...

It looks as I expect it to. Just like I sent it. However, on the pc
the capture looks like this:

dest addr source addr type data
030000000007 000475ffffffc27401 3842 000000000100ffffff8104...

Why are the extra ff's showing up in the source address and in the
data on the pc?

Thanks,
Tom
 
Reply With Quote
 
 
 
 
patrick@klos.com
Guest
Posts: n/a

 
      10-29-2004, 02:00 AM
In article <(E-Mail Removed) >,
Tom Brown <(E-Mail Removed)> wrote:
>I send out my own ethernet broadcast frame then capture it on two
>different devices. One device is a pc; the other device is a wireless
>access point. The source address is a little different in the capture
>on the pc than on the wireless access point. I was wondering why. Here
>is what I send out:
>
>dest addr source addr type data
>030000000007 000475c27401 3842 0000000001008104...
>
>This is what I capture on the wireless access point:
>
>dest addr source addr type data
>030000000007 000475c27401 3842 0000000001008104...
>
>It looks as I expect it to. Just like I sent it. However, on the pc
>the capture looks like this:
>
>dest addr source addr type data
>030000000007 000475ffffffc27401 3842 000000000100ffffff8104...
>
>Why are the extra ff's showing up in the source address and in the
>data on the pc?


Notice that the only byte in your source MAC address with the high bit
on is the 0xc2 byte. Also notice that the only byte in the data field
with the high bit on is also prefixed by 0xffffff. This is due to your
packet dumping routine using a "signed char" type rather than an "unsigned
char". So when the compiler sees you want to pass a signed char value of
0xc2, it sign extends it to 0xffffffc2.

Patrick
========= For LAN/WAN Protocol Analysis, check out PacketView Pro! =========
Patrick Klos Email: (E-Mail Removed)
Klos Technologies, Inc. Web: http://www.klos.com/
==================== What goes around, comes around... =====================
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Video captured by Sony Ericsson K850i jano Broadband 0 06-19-2007 03:16 PM
fast transmit of raw ethernet frames adnan.aziz@gmail.com Linux Networking 0 06-13-2006 09:16 PM
Frames received with errors greater than frames received ok affiliateian@gmail.com Wireless Internet 1 06-05-2006 11:41 PM
Ethereal newbie - no packets captured Roland =?iso-8859-1?Q?K=FCnzel?= Windows Networking 6 08-28-2004 06:20 AM
Bin Laden Captured - photos and video derekscott@wp.shawcable.net Wireless Internet 2 05-01-2004 04:01 AM



1 2 3 4 5 6 7 8 9 10 11