diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2009-03-30 17:59:59 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2009-03-30 17:59:59 -0700 |
commit | cdbfc1e4e4bc559ea7f19e2926209a73b3e9caa4 (patch) | |
tree | 148e9c77d4d58099defaf0d830b2e26c5b05f700 /libnet/include/libnet/libnet-functions.h | |
parent | a3694435cacc323efe6287747ae8778c17e897b1 (diff) | |
parent | 633599a72995f8f91ff55758b515e61049fb688a (diff) | |
download | libnet-v1.1.2.1-fork.tar.gz |
Merge branch 'ip_offset-patch' into v1.1.2.1-forkv1.1.2.1-fork
Diffstat (limited to 'libnet/include/libnet/libnet-functions.h')
-rw-r--r-- | libnet/include/libnet/libnet-functions.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libnet/include/libnet/libnet-functions.h b/libnet/include/libnet/libnet-functions.h index c4fe599..99b1139 100644 --- a/libnet/include/libnet/libnet-functions.h +++ b/libnet/include/libnet/libnet-functions.h @@ -794,6 +794,7 @@ u_int8_t *payload, u_int32_t payload_s, libnet_t *l, libnet_ptag_t ptag); /** * Builds a version 4 RFC 791 Internet Protocol (IP) header. * @param len total length of the IP packet including all subsequent data + * FIXME There is no reason this can't be calculated if zero is passed. * @param tos type of service bits * @param id IP identification number * @param frag fragmentation bits and offset @@ -2080,10 +2081,10 @@ u_int8_t type); * Function updates referer used to compute the checksum. All * pblock need to know where is their referer (ie IP header). * So, this function is called each time a new IP header is inserted. - * It updates the ip_pos field (referer) of each subsequent pblock. + * It updates the ip_offset field (referer) of each previous pblock. */ void -libnet_pblock_record_ip_offset(libnet_t *l, u_int32_t offset); +libnet_pblock_record_ip_offset(libnet_t *l, libnet_pblock_t *p); /* * [Internal] |