summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-07-29 15:01:29 +0000
committerglebius <glebius@FreeBSD.org>2014-07-29 15:01:29 +0000
commitd32e428cc37439544fc5159604ba10ed560a88c1 (patch)
tree9477b8accc13df001371a4c8635f8befec181197 /sys/net/if.h
parent0af32d834580497436de5a0a46015768987e05fd (diff)
downloadFreeBSD-src-d32e428cc37439544fc5159604ba10ed560a88c1.zip
FreeBSD-src-d32e428cc37439544fc5159604ba10ed560a88c1.tar.gz
Garbage collect couple of unused fields from struct ifaddr:
- ifa_claim_addr() unused since removal of NetAtalk - ifa_metric seems to be never utilized, always a copy of if_metric
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 1910cbd..8482daf 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -304,7 +304,7 @@ struct ifa_msghdr {
int ifam_addrs; /* like rtm_addrs */
int ifam_flags; /* value of ifa_flags */
u_short ifam_index; /* index for associated ifp */
- int ifam_metric; /* value of ifa_metric */
+ int ifam_metric; /* value of ifa_ifp->if_metric */
};
/*
@@ -329,7 +329,7 @@ struct ifa_msghdrl {
u_short _ifam_spare1; /* spare space to grow if_index, see if_var.h */
u_short ifam_len; /* length of ifa_msghdrl incl. if_data */
u_short ifam_data_off; /* offset of if_data from beginning */
- int ifam_metric; /* value of ifa_metric */
+ int ifam_metric; /* value of ifa_ifp->if_metric */
struct if_data ifam_data;/* statistics and other data about if or
* address */
};
OpenPOWER on IntegriCloud