summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-05-26 08:33:48 +0000
committermpi <mpi@openbsd.org>2014-05-26 08:33:48 +0000
commit18eeac58cadfb4aa168f99dc757664c84171ec39 (patch)
treec3101b32678ff8cecd2ef6451bd668f7d4a919a5
parentMatching USB devices per device IDs is not a good idea, especially if (diff)
downloadwireguard-openbsd-18eeac58cadfb4aa168f99dc757664c84171ec39.tar.xz
wireguard-openbsd-18eeac58cadfb4aa168f99dc757664c84171ec39.zip
Document that this reference counter is not generic. It indicates how
many route entries are pointing to this address.
-rw-r--r--sys/net/if_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 0277f9d0234..86ca9dd4d30 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_var.h,v 1.10 2014/05/05 11:44:33 mpi Exp $ */
+/* $OpenBSD: if_var.h,v 1.11 2014/05/26 08:33:48 mpi Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -289,7 +289,7 @@ struct ifaddr {
/* check or clean routes (+ or -)'d */
void (*ifa_rtrequest)(int, struct rtentry *);
u_int ifa_flags; /* interface flags, see below */
- u_int ifa_refcnt; /* count of references */
+ u_int ifa_refcnt; /* number of `rt_ifa` references */
int ifa_metric; /* cost of going out this interface */
};