diff options
| author | Nikhil Chandru Rao | 2006-08-07 09:37:23 +0200 |
|---|---|---|
| committer | Nikhil Chandru Rao | 2006-08-07 09:37:23 +0200 |
| commit | 6714ec745a73639c5b473b7d37ca9ddd796a4d03 (patch) | |
| tree | 812905d506fff8105efaa4792a93169126a330fd /src/net | |
| parent | Convert some trivial functions to static inlines. (diff) | |
| download | ipxe-6714ec745a73639c5b473b7d37ca9ddd796a4d03.tar.gz ipxe-6714ec745a73639c5b473b7d37ca9ddd796a4d03.tar.xz ipxe-6714ec745a73639c5b473b7d37ca9ddd796a4d03.zip | |
Minor corrections
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/ipv4.c | 1 | ||||
| -rw-r--r-- | src/net/tcp.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index d1c770a1a..ce985326f 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -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 */ diff --git a/src/net/tcp.c b/src/net/tcp.c index 86d27b510..c9b4c4330 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -570,7 +570,7 @@ int tcp_send ( struct tcp_connection *conn, const void *data, size_t len ) { tcphdr->win = htons ( conn->rcv_win ); /* Set urgent pointer to 0 */ tcphdr->urg = 0; - /* Calculate and store partial checksum, in network byte order */ + /* Calculate and store partial checksum, in host byte order */ tcphdr->csum = 0; tcphdr->csum = tcpip_chksum ( pkb->data, pkb_len ( pkb ) ); |
