X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/5918ff68ff3ffe61ae8ebff5b031d6bdcc63c6bc..07f7b73398de3b60f28301a9af2a2338710105c7:/slirp/if.h diff --git a/slirp/if.h b/slirp/if.h index 33270239fd..69569c10df 100644 --- a/slirp/if.h +++ b/slirp/if.h @@ -5,8 +5,8 @@ * terms and conditions of the copyright. */ -#ifndef _IF_H_ -#define _IF_H_ +#ifndef IF_H +#define IF_H #define IF_COMPRESS 0x01 /* We want compression */ #define IF_NOCOMPRESS 0x02 /* Do not do compression */ @@ -17,7 +17,7 @@ #define IF_MRU 1500 #define IF_COMP IF_AUTOCOMP /* Flags for compression */ -/* 2 for alignment, 14 for ethernet, 40 for TCP/IP */ -#define IF_MAXLINKHDR (2 + 14 + 40) +/* 2 for alignment, 14 for ethernet */ +#define IF_MAXLINKHDR (2 + ETH_HLEN) #endif