diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2011-07-29 11:15:42 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2011-07-29 11:15:42 -0700 |
commit | 57fd347762839354bacb02cb0e4275bf10cb01e6 (patch) | |
tree | 1347938d02bdfad9249fa25476b36b56b2f62ecb | |
parent | e20d0bcb9d3eed803bdcd547dbf88b1954204332 (diff) | |
parent | 31b83cb6c2591be2bd17416d82fcfdcacffb7141 (diff) | |
download | libnet-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.c | 2 |
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); |