summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-06-18 19:20:07 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-06-18 19:20:07 +0200
commit789772ed4586213d6a7fbb867b9296a01ce1b9c0 (patch)
tree52ba2a4a50a3ddce85a13d219446691edda280d8 /lib
parent1b3b3e34ecbc281a13d4ca0b99e891ee9c4d5cac (diff)
downloadbird-789772ed4586213d6a7fbb867b9296a01ce1b9c0.tar
bird-789772ed4586213d6a7fbb867b9296a01ce1b9c0.zip
Implements option that changes BGP listening socket parametres.
Diffstat (limited to 'lib')
-rw-r--r--lib/socket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/socket.h b/lib/socket.h
index 5fe9193..f192260 100644
--- a/lib/socket.h
+++ b/lib/socket.h
@@ -20,6 +20,7 @@ typedef struct birdsock {
unsigned sport, dport; /* 0 = unspecified (for IP: protocol type) */
int tos; /* TOS and priority, -1 = default */
int ttl; /* Time To Live, -1 = default */
+ u32 flags;
struct iface *iface; /* Interface; specify this for broad/multicast sockets */
byte *rbuf, *rpos; /* NULL=allocate automatically */
@@ -57,6 +58,12 @@ sk_send_buffer_empty(sock *sk)
return sk->tbuf == sk->tpos;
}
+
+/* Socket flags */
+
+#define SKF_V6ONLY 1 /* Use IPV6_V6ONLY socket option */
+
+
/*
* Socket types SA SP DA DP IF TTL SendTo (?=may, -=must not, *=must)
*/