version 1.1.1.1, 2013/07/22 11:54:42
|
version 1.1.1.2, 2023/09/27 11:11:38
|
Line 29
|
Line 29
|
* |
* |
*/ |
*/ |
|
|
#if (HAVE_CONFIG_H) | #include "common.h" |
#include "../include/config.h" | |
#endif | |
#if (!(_WIN32) || (__CYGWIN__)) | |
#include "../include/libnet.h" | |
#else | |
#include "../include/win32/libnet.h" | |
#endif | |
|
|
libnet_ptag_t |
libnet_ptag_t |
libnet_build_hsrp(uint8_t version, uint8_t opcode, uint8_t state, |
libnet_build_hsrp(uint8_t version, uint8_t opcode, uint8_t state, |
Line 84 const uint8_t *payload, uint32_t payload_s, libnet_t *
|
Line 77 const uint8_t *payload, uint32_t payload_s, libnet_t *
|
if (payload_s && !payload) |
if (payload_s && !payload) |
{ |
{ |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"%s(): payload inconsistency\n", __func__); | "%s(): payload inconsistency", __func__); |
goto bad; |
goto bad; |
} |
} |
|
|
Line 102 bad:
|
Line 95 bad:
|
libnet_pblock_delete(l, p); |
libnet_pblock_delete(l, p); |
return (-1); |
return (-1); |
} |
} |
/* EOF */ | |
| /** |
| * Local Variables: |
| * indent-tabs-mode: nil |
| * c-file-style: "stroustrup" |
| * End: |
| */ |