summaryrefslogtreecommitdiff
path: root/sysdep/unix/unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/unix.h')
-rw-r--r--sysdep/unix/unix.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h
index 2d260744..4cced091 100644
--- a/sysdep/unix/unix.h
+++ b/sysdep/unix/unix.h
@@ -21,10 +21,18 @@ volatile int async_config_flag;
volatile int async_dump_flag;
volatile int async_shutdown_flag;
+#ifdef IPV6
+#define BIRD_PF PF_INET6
+typedef struct sockaddr_in6 sockaddr;
+#else
+#define BIRD_PF PF_INET
+typedef struct sockaddr_in sockaddr;
+#endif
+
void io_init(void);
void io_loop(void);
-void fill_in_sockaddr(struct sockaddr_in *sa, ip_addr a, unsigned port);
-void get_sockaddr(struct sockaddr_in *sa, ip_addr *a, unsigned *port);
+void fill_in_sockaddr(sockaddr *sa, ip_addr a, unsigned port);
+void get_sockaddr(sockaddr *sa, ip_addr *a, unsigned *port);
/* krt.c bits */