summaryrefslogtreecommitdiff
path: root/slirp/if.c
diff options
context:
space:
mode:
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;