netdev
[Top] [All Lists]

Question on SOCK_PACKET

To: "netdev@xxxxxxxxxxx" <netdev@xxxxxxxxxxx>
Subject: Question on SOCK_PACKET
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Sat, 05 Feb 2000 14:58:52 -0700
Organization: Candela Technologies
Sender: owner-netdev@xxxxxxxxxxx
I'm building a test protocol that will write directly to
the ethernet driver using the SOCK_PACKET socket type.


However, I'm seeing something a little wierd.  I write a pkt
of 1036 bytes, but when I read off of the receiving port
(on the other machine), I read 1040 bytes.  All bytes seem to
be the same, except that there are 4 extra ones tacked onto
the end.

I'm suspicious that they might be an ethernet checksum.  Can
anyone confirm this, or provide any other ideas?

Thanks,
Ben

-- 
Ben Greear (greearb@xxxxxxxxxxxxxxx)  http://scry.wanfear.com/~greear 
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com

<Prev in Thread] Current Thread [Next in Thread>
  • Question on SOCK_PACKET, Ben Greear <=