The struct if_data members ifi_recvquota and ifi_xmitquota have been

unused for ages.  Rename them to ifi_spare_char1 and ifi_spare_char2
respectively to indicate this face.
This commit is contained in:
Brooks Davis 2007-05-16 18:37:37 +00:00
parent abb91d889a
commit bec59525e6
2 changed files with 2 additions and 4 deletions

View file

@ -83,8 +83,8 @@ struct if_data {
u_char ifi_addrlen; /* media address length */
u_char ifi_hdrlen; /* media header length */
u_char ifi_link_state; /* current link state */
u_char ifi_recvquota; /* polling quota for receive intrs */
u_char ifi_xmitquota; /* polling quota for xmit intrs */
u_char ifi_spare_char1; /* spare byte */
u_char ifi_spare_char2; /* spare byte */
u_char ifi_datalen; /* length of this data struct */
u_long ifi_mtu; /* maximum transmission unit */
u_long ifi_metric; /* routing metric (external only) */

View file

@ -216,8 +216,6 @@ typedef void if_init_f_t(void *);
#define if_iqdrops if_data.ifi_iqdrops
#define if_noproto if_data.ifi_noproto
#define if_lastchange if_data.ifi_lastchange
#define if_recvquota if_data.ifi_recvquota
#define if_xmitquota if_data.ifi_xmitquota
#define if_rawoutput(if, m, sa) if_output(if, m, sa, (struct rtentry *)NULL)
/* for compatibility with other BSDs */