On Friday 26 February 2016 14:18:17 Andreas Pape wrote:
iphdr = (struct iphdr *)(vhdr +
sizeof(struct vlan_ethhdr));
Forgot this one: sizeof(*vhdr) == 18. So you basically calculated
(u8 *)vhdr + 18 * 18
But I would guess that you actually wanted to calculate
(u8 *)vhdr + 18
Kind regards, Sven