]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - lib/socket.h
Filter test: typo fix
[thirdparty/bird.git] / lib / socket.h
index fbea92aa79570775d354335b10e593e79e82c26e..0769489b212d3d87fdbfc14eaa92874a42288a3a 100644 (file)
@@ -26,10 +26,12 @@ typedef struct birdsock {
   int ttl;                             /* Time To Live, -1 = default */
   u32 flags;
   struct iface *iface;                 /* Interface; specify this for broad/multicast sockets */
+  struct iface *vrf;                   /* Related VRF instance, NULL if global */
 
   byte *rbuf, *rpos;                   /* NULL=allocate automatically */
+  uint fast_rx;                                /* RX has higher priority in event loop */
   uint rbsize;
-  int (*rx_hook)(struct birdsock *, int size); /* NULL=receiving turned off, returns 1 to clear rx buffer */
+  int (*rx_hook)(struct birdsock *, uint size); /* NULL=receiving turned off, returns 1 to clear rx buffer */
 
   byte *tbuf, *tpos;                   /* NULL=allocate automatically */
   byte *ttx;                           /* Internal */
@@ -86,7 +88,7 @@ int sk_leave_group(sock *s, ip_addr maddr);   /* Leave multicast group on sk iface
 int sk_setup_broadcast(sock *s);
 int sk_set_ttl(sock *s, int ttl);      /* Set transmit TTL for given socket */
 int sk_set_min_ttl(sock *s, int ttl);  /* Set minimal accepted TTL for given socket */
-int sk_set_md5_auth(sock *s, ip_addr a, struct iface *ifa, char *passwd);
+int sk_set_md5_auth(sock *s, ip_addr local, ip_addr remote, struct iface *ifa, char *passwd, int setkey);
 int sk_set_ipv6_checksum(sock *s, int offset);
 int sk_set_icmp6_filter(sock *s, int p1, int p2);
 void sk_log_error(sock *s, const char *p);