add packed attribute to struct ifreq. this should avoid unaligned access

while parsing SIOCGIFCONF, on alignment-picky archs.
This commit is contained in:
itojun 2000-05-15 16:45:50 +00:00
parent e66be0bd10
commit 3df6dbc4c7
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.h,v 1.48 2000/03/29 03:27:59 simonb Exp $ */
/* $NetBSD: if.h,v 1.49 2000/05/15 16:45:50 itojun Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -447,7 +447,7 @@ struct ifreq {
#define ifr_value ifr_ifru.ifru_value /* generic value */
#define ifr_media ifr_ifru.ifru_metric /* media options (overload) */
#define ifr_data ifr_ifru.ifru_data /* for use by interface */
};
} __attribute__((__packed__));
struct ifaliasreq {
char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */