Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/probe_modules/module_ipv6_tcp_synscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include "probe_modules.h"
#include "packet.h"

#define ZMAPV6_TCP_SYNSCAN_TCP_HEADER_LEN 20
#define ZMAPV6_TCP_SYNSCAN_PACKET_LEN 74
#define ZMAPV6_TCP_SYNSCAN_TCP_HEADER_LEN 24
#define ZMAPV6_TCP_SYNSCAN_PACKET_LEN 78

probe_module_t module_ipv6_tcp_synscan;
static uint32_t num_ports;
Expand Down Expand Up @@ -56,6 +56,7 @@ int ipv6_synscan_init_perthread(void* buf, macaddr_t *src,
make_ip6_header(ip6_header, IPPROTO_TCP, payload_len);
struct tcphdr *tcp_header = (struct tcphdr*)(&ip6_header[1]);
make_tcp_header(tcp_header, dst_port, TH_SYN);
set_mss_option(tcp_header);
return EXIT_SUCCESS;
}

Expand Down