-/* $OpenBSD: route.c,v 1.176 2014/08/11 11:59:05 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.177 2014/08/12 13:52:08 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
struct ifaddr *encap_findgwifa(struct sockaddr *, u_int);
#endif
-struct route_cb route_cb;
struct rtstat rtstat;
struct radix_node_head ***rt_tables;
u_int8_t af2rtafidx[AF_MAX+1];
-/* $OpenBSD: route.h,v 1.95 2014/07/29 12:18:41 mpi Exp $ */
+/* $OpenBSD: route.h,v 1.96 2014/08/12 13:52:08 mpi Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
#define RT_REPORT 0x1
#define RT_NOCLONING 0x2
-struct route_cb {
- int ip_count;
- int ip6_count;
- int mpls_count;
- int any_count;
-};
-
-extern struct route_cb route_cb;
extern struct rtstat rtstat;
extern const struct sockaddr_rtin rt_defmask4;
-/* $OpenBSD: rtsock.c,v 1.151 2014/08/11 11:59:05 mpi Exp $ */
+/* $OpenBSD: rtsock.c,v 1.152 2014/08/12 13:52:08 mpi Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
};
#define sotoroutecb(so) ((struct routecb *)(so)->so_pcb)
+struct route_cb {
+ int ip_count;
+ int ip6_count;
+ int mpls_count;
+ int any_count;
+};
+
+struct route_cb route_cb;
+
/*
* These flags and timeout are used for indicating to userland (via a
* RTM_DESYNC msg) when the route socket has overflowed and messages