forked from robertdavidgraham/masscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproto-udp.h
31 lines (27 loc) · 834 Bytes
/
proto-udp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PROTO_UDP_H
#define PROTO_UDP_H
#include <time.h>
#include <stdint.h>
struct PreprocessedInfo;
struct Output;
/**
* Parse an incoming UDP response. We parse the basics, then hand it off
* to a protocol parser (SNMP, NetBIOS, NTP, etc.)
* @param entropy
* The random seed, used in calculating syn-cookies.
*/
void
handle_udp(struct Output *out, time_t timestamp,
const unsigned char *px, unsigned length,
struct PreprocessedInfo *parsed,
uint64_t entropy);
/**
* Default banner for UDP, consisting of the first 64 bytes, when it isn't
* detected as the appropriate protocol
*/
unsigned
default_udp_parse(struct Output *out, time_t timestamp,
const unsigned char *px, unsigned length,
struct PreprocessedInfo *parsed,
uint64_t entropy);
#endif