Deleted Added
full compact
30c30
< * $FreeBSD: head/sys/net/route.h 260508 2014-01-10 12:13:55Z melifaro $
---
> * $FreeBSD: head/sys/net/route.h 262763 2014-03-05 01:17:47Z glebius $
35a36,37
> #include <sys/counter.h>
>
60,70d61
< /*
< * These numbers are used by reliable protocols for determining
< * retransmission behavior and are included in the routing structure.
< */
< struct rt_metrics_lite {
< u_long rmx_mtu; /* MTU for this path */
< u_long rmx_expire; /* lifetime for route, e.g. redirect */
< u_long rmx_pksent; /* packets sent using this route */
< u_long rmx_weight; /* absolute weight */
< };
<
127,128d117
< int rt_flags; /* up/down?, host/net */
< int rt_refcnt; /* # held references */
131,136c120,128
< struct rt_metrics_lite rt_rmx; /* metrics used by rx'ing protocols */
< u_int rt_fibnum; /* which FIB */
< #ifdef _KERNEL
< /* XXX ugly, user apps use this definition but don't have a mtx def */
< struct mtx rt_mtx; /* mutex for routing entry */
< #endif
---
> int rt_flags; /* up/down?, host/net */
> int rt_refcnt; /* # held references */
> u_int rt_fibnum; /* which FIB */
> u_long rt_mtu; /* MTU for this path */
> u_long rt_weight; /* absolute weight */
> u_long rt_expire; /* lifetime for route, e.g. redirect */
> #define rt_endzero rt_pksent
> counter_u64_t rt_pksent; /* packets sent using this route */
> struct mtx rt_mtx; /* mutex for routing entry */
153,154d144
< #define rt_use rt_rmx.rmx_pksent
<