aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2017-08-24 23:08:12 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2017-08-24 23:08:12 +0000
commitdcfa556b02dd6265fb14dd52799453dc924a024a (patch)
treed3614a2a4ce6ef18e3e8a3d29b93ca23ce5b2cd6 /sys
parentb82c9ba1c4e965f8bfff3fd963254a056c2c4246 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net/route.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index 444559b54aad3..ae052f190ddf1 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -67,8 +67,6 @@ struct route {
#define RT_MAY_LOOP_BIT 3 /* dst may require loop copy */
#define RT_HAS_HEADER_BIT 4 /* mbuf already have its header prepended */
-#define RT_CACHING_CONTEXT 0x1 /* XXX: not used anywhere */
-#define RT_NORTREF 0x2 /* doesn't hold reference on ro_rt */
#define RT_L2_ME (1 << RT_L2_ME_BIT) /* 0x0004 */
#define RT_MAY_LOOP (1 << RT_MAY_LOOP_BIT) /* 0x0008 */
#define RT_HAS_HEADER (1 << RT_HAS_HEADER_BIT) /* 0x0010 */
@@ -411,14 +409,8 @@ struct rt_addrinfo {
#define RO_RTFREE(_ro) do { \
if ((_ro)->ro_rt) { \
- if ((_ro)->ro_flags & RT_NORTREF) { \
- (_ro)->ro_flags &= ~RT_NORTREF; \
- (_ro)->ro_rt = NULL; \
- (_ro)->ro_lle = NULL; \
- } else { \
- RT_LOCK((_ro)->ro_rt); \
- RTFREE_LOCKED((_ro)->ro_rt); \
- } \
+ RT_LOCK((_ro)->ro_rt); \
+ RTFREE_LOCKED((_ro)->ro_rt); \
} \
} while (0)