diff options
author | Nikhil Chandru Rao | 2006-08-08 05:42:30 +0200 |
---|---|---|
committer | Nikhil Chandru Rao | 2006-08-08 05:42:30 +0200 |
commit | d2bdf815050ce7f394ef7f860f746ccf894fe787 (patch) | |
tree | c70c89af6c574b8ac4f62d768d1c114325424791 /src/net/ipv4.c | |
parent | Added retransmissions to TCP (diff) | |
download | ipxe-d2bdf815050ce7f394ef7f860f746ccf894fe787.tar.gz ipxe-d2bdf815050ce7f394ef7f860f746ccf894fe787.tar.xz ipxe-d2bdf815050ce7f394ef7f860f746ccf894fe787.zip |
Removed some bugs in TCP
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r-- | src/net/ipv4.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index a9635693..bfef358d 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -107,6 +107,7 @@ void del_ipv4_address ( struct net_device *netdev ) { */ static void ipv4_dump ( struct iphdr *iphdr __unused ) { +/* DBG ( "IP4 header at %p+%#zx\n", iphdr, sizeof ( *iphdr ) ); DBG ( "\tVersion = %d\n", ( iphdr->verhdrlen & IP_MASK_VER ) / 16 ); DBG ( "\tHeader length = %d\n", iphdr->verhdrlen & IP_MASK_HLEN ); @@ -120,6 +121,11 @@ static void ipv4_dump ( struct iphdr *iphdr __unused ) { ntohs ( iphdr->chksum ) ); DBG ( "\tSource = %s\n", inet_ntoa ( iphdr->src ) ); DBG ( "\tDestination = %s\n", inet_ntoa ( iphdr->dest ) ); +*/ + DBG ( "IP4 %p transmitting %p+%d ident %d protocol %d header-csum %x\n", + &ipv4_protocol, iphdr, ntohs ( iphdr->len ), ntohs ( iphdr->ident ), + iphdr->protocol, ntohs ( iphdr->chksum ) ); + DBG ( "src %s, dest %s\n", inet_ntoa ( iphdr->src ), inet_ntoa ( iphdr->dest ) ); } /** |