trafgen: proto: Don't store context in each proto header
[netsniff-ng-new.git] / sock.h
blob8f68d42111766070046c0b97b01f290422db9217
1 #ifndef SOCK_H
2 #define SOCK_H
4 extern int af_socket(int af);
5 extern int pf_socket(void);
6 extern int pf_socket_type(uint32_t type);
7 extern void set_nonblocking(int fd);
8 extern int set_nonblocking_sloppy(int fd);
9 extern int set_reuseaddr(int fd);
10 extern void set_sock_qdisc_bypass(int fd, int verbose);
11 extern void set_sock_prio(int fd, int prio);
12 extern void set_tcp_nodelay(int fd);
13 extern void set_socket_keepalive(int fd);
14 extern int set_ipv6_only(int fd);
15 extern void set_mtu_disc_dont(int fd);
16 extern void set_system_socket_memory(int *vals, size_t len);
17 extern void reset_system_socket_memory(int *vals, size_t len);
19 #endif /* SOCK_H */