Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ldpd Do not pack struct rt_msg - this voids the ali...



details:   https://anonhg.NetBSD.org/src/rev/68bdfb7f23ed
branches:  trunk
changeset: 788992:68bdfb7f23ed
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Aug 02 16:51:25 2013 +0000

description:
Do not pack struct rt_msg - this voids the alignement restrictions and
causes crashes on alignemen critical archs.
>From Matt Thomas.

diffstat:

 usr.sbin/ldpd/mpls_routes.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f13ae37eac92 -r 68bdfb7f23ed usr.sbin/ldpd/mpls_routes.h
--- a/usr.sbin/ldpd/mpls_routes.h       Fri Aug 02 14:10:46 2013 +0000
+++ b/usr.sbin/ldpd/mpls_routes.h       Fri Aug 02 16:51:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpls_routes.h,v 1.6 2013/07/18 11:45:36 kefren Exp $ */
+/* $NetBSD: mpls_routes.h,v 1.7 2013/08/02 16:51:25 martin Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 struct rt_msg {
        struct rt_msghdr m_rtm;
        char            m_space[512];
-}               __packed;
+};
 
 union sockunion *      make_inet_union(const char *);
 union sockunion *      make_mpls_union(uint32_t);



Home | Main Index | Thread Index | Old Index