From a9f755239834c0175117b1347fc639e0d0272641 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 10 May 2006 19:21:58 +0000 Subject: suppressed unaligned accesses git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1911 c046a42c-6fe2-441c-8c8c-71466251a162 --- if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'if.c') diff --git a/if.c b/if.c index ca4aeb4..28ea44e 100644 --- a/if.c +++ b/if.c @@ -47,8 +47,8 @@ void if_init() if_maxlinkhdr = 40; #endif #else - /* 14 for ethernet + 40 */ - if_maxlinkhdr = 14 + 40; + /* 2 for alignment, 14 for ethernet, 40 for TCP/IP */ + if_maxlinkhdr = 2 + 14 + 40; #endif if_mtu = 1500; if_mru = 1500; -- cgit v1.1