1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Implements option that changes BGP listening socket parametres.

This commit is contained in:
Ondrej Zajicek
2009-06-18 19:20:07 +02:00
parent 1b3b3e34ec
commit 789772ed45
6 changed files with 48 additions and 5 deletions

View File

@@ -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)
*/