version 1.1.1.2, 2013/07/22 11:54:42
|
version 1.1.1.3, 2023/09/27 11:11:38
|
Line 31
|
Line 31
|
* |
* |
*/ |
*/ |
|
|
#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_link(const uint8_t *dst, const uint8_t *src, const uint8_t *oui, uint16_t type, |
libnet_build_link(const uint8_t *dst, const uint8_t *src, const uint8_t *oui, uint16_t type, |
const uint8_t *payload, uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag) |
const uint8_t *payload, uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag) |
Line 60 const uint8_t *payload, uint32_t payload_s, libnet_t *
|
Line 52 const uint8_t *payload, uint32_t payload_s, libnet_t *
|
l, ptag); |
l, ptag); |
} |
} |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"%s(): linktype %d not supported\n", __func__, l->link_type); | "%s(): linktype %d not supported", __func__, l->link_type); |
return -1; |
return -1; |
} |
} |
|
|
Line 79 libnet_autobuild_link(const uint8_t *dst, const uint8_
|
Line 71 libnet_autobuild_link(const uint8_t *dst, const uint8_
|
LIBNET_SAP_SNAP, 0x03, org, TOKEN_RING_TYPE_IP, l)); |
LIBNET_SAP_SNAP, 0x03, org, TOKEN_RING_TYPE_IP, l)); |
} |
} |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"%s(): linktype %d not supported\n", __func__, l->link_type); | "%s(): linktype %d not supported", __func__, l->link_type); |
return (-1); |
return (-1); |
} |
} |
|
|
|
/** |
|
* Local Variables: |
|
* indent-tabs-mode: nil |
|
* c-file-style: "stroustrup" |
|
* End: |
|
*/ |