Minor corrections

This commit is contained in:
Nikhil Chandru Rao
2006-08-07 07:37:23 +00:00
parent eb24eece0e
commit 6714ec745a
2 changed files with 2 additions and 1 deletions

View File

@@ -247,6 +247,7 @@ static void ipv4_tx_csum ( struct pk_buff *pkb,
pshdr.dest = iphdr->dest;
pshdr.zero_padding = 0x00;
pshdr.protocol = iphdr->protocol;
/* This is only valid when IPv4 does not have options */
pshdr.len = htons ( pkb_len ( pkb ) - sizeof ( *iphdr ) );
/* Update the checksum value */