summaryrefslogtreecommitdiff
path: root/sock.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 11:21:48 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 11:22:25 +0200
commita66fe185ab6a3eb7a483fd9888b54ee43328836e (patch)
tree527c53135af3c6d2c9b27e6de628c1ac5e2e2754 /sock.h
parent0b65b09f15783b067343f7a2dcf67ae1f1e27dc7 (diff)
sock: add socket management functions
Remove them from xutils, and add them to socket management. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'sock.h')
-rw-r--r--sock.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sock.h b/sock.h
new file mode 100644
index 0000000..007bf2a
--- /dev/null
+++ b/sock.h
@@ -0,0 +1,17 @@
+#ifndef SOCK_H
+#define SOCK_H
+
+extern int af_socket(int af);
+extern int pf_socket(void);
+extern void set_nonblocking(int fd);
+extern int set_nonblocking_sloppy(int fd);
+extern int set_reuseaddr(int fd);
+extern void set_sock_prio(int fd, int prio);
+extern void set_tcp_nodelay(int fd);
+extern void set_socket_keepalive(int fd);
+extern int set_ipv6_only(int fd);
+extern void set_mtu_disc_dont(int fd);
+extern void set_system_socket_memory(int *vals, size_t len);
+extern void reset_system_socket_memory(int *vals, size_t len);
+
+#endif /* SOCK_H */