summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2011-07-29 11:15:42 -0700
committerSam Roberts <vieuxtech@gmail.com>2011-07-29 11:15:42 -0700
commit57fd347762839354bacb02cb0e4275bf10cb01e6 (patch)
tree1347938d02bdfad9249fa25476b36b56b2f62ecb
parente20d0bcb9d3eed803bdcd547dbf88b1954204332 (diff)
parent31b83cb6c2591be2bd17416d82fcfdcacffb7141 (diff)
downloadlibnet-57fd347762839354bacb02cb0e4275bf10cb01e6.tar.gz
Merge pull request #10 from allfro/master
Fixes improper calculation of header size in HSRP builder
-rw-r--r--libnet/src/libnet_build_hsrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnet/src/libnet_build_hsrp.c b/libnet/src/libnet_build_hsrp.c
index 7c03749..8f56945 100644
--- a/libnet/src/libnet_build_hsrp.c
+++ b/libnet/src/libnet_build_hsrp.c
@@ -57,7 +57,7 @@ const uint8_t *payload, uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag)
* Find the existing protocol block if a ptag is specified, or create
* a new one.
*/
- p = libnet_pblock_probe(l, ptag, LIBNET_HSRP_H, LIBNET_PBLOCK_HSRP_H);
+ p = libnet_pblock_probe(l, ptag, LIBNET_HSRP_H + payload_s, LIBNET_PBLOCK_HSRP_H);
if (p == NULL)
{
return (-1);