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:
@@ -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)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user