Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Bad TCP checksum generated by LKM
Search Topic:
Uniqs:
114
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Job: Develop a Simple Drupal (PHP) Module »
« please tell me why my c++ app doesnt work?  
AuthorAll Replies


yaplej
CCNA
Premium
join:2001-02-10
White City, OR
·Charter Pipeline

Bad TCP checksum generated by LKM

PacketProces···1.29.zip 12,936 bytes
Dont laugh at my code!
I have been working on a Linux Kernel Module that will accelerate network traffic. Its been a slow go as I am learning both C, and kernel development.

I have a nearly finished prototype now, but ran into a wall. The module processes network packets using the function in packetprocessor.h. It inserts custom TCP options into the network packets so other devices running the module can detect each other. Its similar to what commercial WAN accelerators do.

I found that the module starts creating bad TCP checksum at line #112 of packetprocessor.h . This makes me think there is something wrong with __set_tcp_option() in tcpoptions.h.

Whats confusing is that the same function worked fine at line #62, 63, 94, and 95 without any problems. Maybe someone can look though __set_tcp_option() in tcpoptions.h, and possibly at the code in packetprocessor.h around line #112.

I have been looking at this for a while, and cannot figure out where its getting mucked up.
--
sk_buff what?

Open Source WAN Accelerator
»trafficsqueezer.sourceforge.net/



yaplej
CCNA
Premium
join:2001-02-10
White City, OR
·Charter Pipeline

I finally figured out why I was getting bad checksum. The
variable tcplen was an __u8, and tcplen should actually be __u16.

tcpoptions.h

--
sk_buff what?

Open Source WAN Accelerator
»trafficsqueezer.sourceforge.net/

-
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersJob: Develop a Simple Drupal (PHP) Module »
« please tell me why my c++ app doesnt work?  


Sunday, 29-Nov 09:49:29 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [122] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [80] TiVo Sees Record Customer Losses
· [74] Verizon CEO: Hulu Will Be Dead Soon
· [74] Weekend Open Thread
· [69] In-Flight Internet Headed For Bumpy Landing?
· [62] Thanksgiving Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Evading throttling with uTP / uTorrent 1.9a [TekSavvy]
· Anyone have a problem [Software]
· Windows 7 - Dell ALPS Touchpad driver [Microsoft Help]
· [Snow Leopard] NFS Mounts - no more Directory Utility [All Things Macintosh]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· Maximizing Rogue DPS for 3.1 [World of Warcraft]
· [Beta] Office 2010 Beta (Wow) [Microsoft Help]