File: sctp_darn.h

package info (click to toggle)
lksctp-tools 1.0.19%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,272 kB
  • sloc: ansic: 13,566; makefile: 270; sh: 26
file content (29 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (8)
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
#ifndef __sctp_darn_h__
#define __sctp_darn_h__

#define REALLY_BIG 65536
#define SCTP_TESTPORT_1 1
#define SCTP_TESTPORT_2 2

void parse_arguments(int argc, char *argv[]);
void usage(char *argv0);
int command_listen(char *arg0, int sk);
int command_send(char *arg0,   int *skp);
int command_poll(char *arg0);
int test_print_message(int sk, struct msghdr *, size_t msg_len);

typedef enum {
	COMMAND_NONE = 0,
	COMMAND_LISTEN,
	COMMAND_SEND,
	COMMAND_POLL,
} command_t;

typedef union {
	struct sockaddr_storage ss;
        struct sockaddr_in v4;
        struct sockaddr_in6 v6;
        struct sockaddr sa;
} sockaddr_storage_t;

#endif /* __sctp_darn_h__ */