Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net add packed attribute to struct ifreq. this should a...
details: https://anonhg.NetBSD.org/src/rev/c7545c91d00a
branches: trunk
changeset: 486219:c7545c91d00a
user: itojun <itojun%NetBSD.org@localhost>
date: Mon May 15 16:45:50 2000 +0000
description:
add packed attribute to struct ifreq. this should avoid unaligned access
while parsing SIOCGIFCONF, on alignment-picky archs.
diffstat:
sys/net/if.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 463eafae09cc -r c7545c91d00a sys/net/if.h
--- a/sys/net/if.h Mon May 15 16:38:49 2000 +0000
+++ b/sys/net/if.h Mon May 15 16:45:50 2000 +0000
@@ -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 @@
#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" */
Home |
Main Index |
Thread Index |
Old Index