Message ID | 20131022092108.GA3085@amosk.info |
---|---|
State | New |
Headers | show |
This was my original intention, but I noticed that structs defined differently and standard one may be bigger depending on some #defines. So I renamed in6_addr to in6_address in include/net/eth.h (see v2 patch I sent yesterday). In case qemu version is not supposed to be a different struct, then your change is definitely right.
diff --git a/include/net/eth.h b/include/net/eth.h index 1d48e06..1cce570 100644 --- a/include/net/eth.h +++ b/include/net/eth.h @@ -28,6 +28,7 @@ #include <sys/types.h> #include <string.h> +#include <netinet/in.h> #include "qemu/bswap.h" #include "qemu/iov.h" @@ -83,13 +84,6 @@ typedef struct ip_pseudo_header { uint16_t ip_payload; } ip_pseudo_header; -/* IPv6 address */ -struct in6_addr { - union { - uint8_t __u6_addr8[16]; - } __in6_u; -}; - struct ip6_header { union { struct ip6_hdrctl {