summaryrefslogtreecommitdiff
path: root/libnet/sample
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2010-02-12 16:42:35 -0800
committerSam Roberts <vieuxtech@gmail.com>2010-02-12 16:42:35 -0800
commit195e7ba365f2a63fcb14d720100103316cebf925 (patch)
tree87a481f0e048fad9b888ea8484818de8a9b717d5 /libnet/sample
parent0e319a4e6b2b0e3470f7f49ee977d9cc2407711d (diff)
downloadlibnet-195e7ba365f2a63fcb14d720100103316cebf925.tar.gz
ip_offset is now calculated on the fly, and UDP and TCP no longer use h_len
Diffstat (limited to 'libnet/sample')
-rw-r--r--libnet/sample/test_ipv4.c4
-rw-r--r--libnet/sample/test_ipv4_options.c4
-rw-r--r--libnet/sample/test_ipv6_icmpv4.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/libnet/sample/test_ipv4.c b/libnet/sample/test_ipv4.c
index c75ffd1..bccbe14 100644
--- a/libnet/sample/test_ipv4.c
+++ b/libnet/sample/test_ipv4.c
@@ -40,10 +40,10 @@ static void print_pblocks(libnet_t* l)
while(p) {
/* h_len is header length for checksumming? "chksum length"? */
- printf(" tag %d flags %d type %20s/%#x buf %p b_len %2u h_len %2u ip_offset %2u, copied %2u\n",
+ printf(" tag %d flags %d type %20s/%#x buf %p b_len %2u h_len %2u copied %2u\n",
p->ptag, p->flags,
libnet_diag_dump_pblock_type(p->type), p->type,
- p->buf, p->b_len, p->h_len, p->ip_offset, p->copied);
+ p->buf, p->b_len, p->h_len, p->copied);
p = p->next;
}
printf(" link_offset %d aligner %d total_size %u nblocks %d\n",
diff --git a/libnet/sample/test_ipv4_options.c b/libnet/sample/test_ipv4_options.c
index 4c0fe67..c128cb5 100644
--- a/libnet/sample/test_ipv4_options.c
+++ b/libnet/sample/test_ipv4_options.c
@@ -48,10 +48,10 @@ static void print_pblocks(libnet_t* l)
libnet_pblock_t* p = l->protocol_blocks;
while(p) {
- printf(" tag %2d flags %d type %20s/%#x buf %p b_len %2u h_len %2u ip_offset %2u, copied %2u\n",
+ printf(" tag %2d flags %d type %20s/%#x buf %p b_len %2u h_len %2u copied %2u\n",
p->ptag, p->flags,
libnet_diag_dump_pblock_type(p->type), p->type,
- p->buf, p->b_len, p->h_len, p->ip_offset, p->copied);
+ p->buf, p->b_len, p->h_len, p->copied);
p = p->next;
}
printf(" link_offset %d aligner %d total_size %u nblocks %d\n",
diff --git a/libnet/sample/test_ipv6_icmpv4.c b/libnet/sample/test_ipv6_icmpv4.c
index 4841941..8c1808a 100644
--- a/libnet/sample/test_ipv6_icmpv4.c
+++ b/libnet/sample/test_ipv6_icmpv4.c
@@ -42,10 +42,10 @@ static void print_pblocks(libnet_t* l)
while(p) {
/* h_len is header length for checksumming? "chksum length"? */
- printf(" tag %d flags %d type %20s/%#x buf %p b_len %2u h_len %2u ip_offset %2u, copied %2u\n",
+ printf(" tag %d flags %d type %20s/%#x buf %p b_len %2u h_len %2u copied %2u\n",
p->ptag, p->flags,
libnet_diag_dump_pblock_type(p->type), p->type,
- p->buf, p->b_len, p->h_len, p->ip_offset, p->copied);
+ p->buf, p->b_len, p->h_len, p->copied);
p = p->next;
}
printf(" link_offset %d aligner %d total_size %u nblocks %d\n",