aboutsummaryrefslogtreecommitdiff
path: root/slirp/if.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-10 19:21:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-10 19:21:58 +0000
commit38f3e7c2f526fb70d7bc52ed62910fea506dc84f (patch)
tree397f8cf91fab6c6f97f6f944ebc74575c059c091 /slirp/if.c
parent73540ca962d94c4bfc8fd178590172f0a9f81bfc (diff)
suppressed unaligned accesses
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1911 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/if.c')
-rw-r--r--slirp/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/if.c b/slirp/if.c
index 2ce9a6424f..94132ca888 100644
--- a/slirp/if.c
+++ b/slirp/if.c
@@ -52,8 +52,8 @@ 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;