Re: [B.A.T.M.A.N.] [PATCHv2 2/7] batman-adv: speed up dat by snooping received ip traffic

Sven Eckelmann
2016-02-26T21:17:29Z

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

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