diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-08-28 18:30:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-08-28 18:30:39 +0000 |
commit | 6408df20cd02ab686e67d52b1c69532f420c35e2 (patch) | |
tree | dd798fc6445447535ca30fedeb27757cadad5c1e /sys | |
parent | 86514fd3229d94f5cccc0a3c24366167ab60a9e6 (diff) |
changing the size of if_data has heavy impact on userland compat. there
was even a u_char slot available for ifi_link_state, which clearly does not
need a full 32 bits.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 7b40a7f117d..c1bfa44e34d 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.18 2000/08/26 20:04:16 nate Exp $ */ +/* $OpenBSD: if.h,v 1.19 2000/08/28 18:30:38 deraadt Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -81,7 +81,7 @@ struct if_data { u_char ifi_type; /* ethernet, tokenring, etc. */ u_char ifi_addrlen; /* media address length */ u_char ifi_hdrlen; /* media header length */ - int ifi_link_state; /* current link state */ + u_char ifi_link_state; /* current link state */ u_long ifi_mtu; /* maximum transmission unit */ u_long ifi_metric; /* routing metric (external only) */ u_long ifi_baudrate; /* linespeed */ |