Re: Ethernet Checksum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-02-13 at 16:13 +0530, Krishna Pattabiraman wrote:
> Hi all
> I am reading a socket using SOCK_PACKET, the 
> driver strips off the checksum from the packet , 
> Is there any option can be passed to driver to 
> include the  checksum and push it to packet User 
> Space ?
> 

Usually each nic's driver handles with different way 
the ethernet checksums.

Some cards add the checksum on hardware, so drivers don't add anything
to the ethernet packet. On this case,if the hardware strips the checksum
before forward the data to the driver,you cannot do anything. 

Other drivers add this checksum explicitly at the tail of ethernet frame
(software checksuming), and of course on the receiving side strip it
before forward it to the higher levels. On this case driver has the
checksum itself,but normal drivers drop the frames with wrong
checksum,so you must modify your driver to keep them.

Stavros Passas



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux