Closed milabs closed 6 years ago
data = (char *)((unsigned char *)icmp_header + sizeof(struct icmphdr)); data = (char *)((unsigned char *)tcp_header + sizeof(struct tcphdr)); data = (char *)((unsigned char *)udp_header + sizeof(struct udphdr));
data = (char *)((unsigned char *)icmp_header + sizeof(struct icmphdr));
data = (char *)((unsigned char *)tcp_header + sizeof(struct tcphdr));
data = (char *)((unsigned char *)udp_header + sizeof(struct udphdr));
skb_header_pointer() must be used along with local on-stack copy of skb->data portion...
skb->data
See the example: https://elixir.bootlin.com/linux/latest/source/net/bridge/netfilter/ebt_ip.c#L36
fixed in f667770
data = (char *)((unsigned char *)icmp_header + sizeof(struct icmphdr));
data = (char *)((unsigned char *)tcp_header + sizeof(struct tcphdr));
data = (char *)((unsigned char *)udp_header + sizeof(struct udphdr));
skb_header_pointer() must be used along with local on-stack copy of
skb->data
portion...See the example: https://elixir.bootlin.com/linux/latest/source/net/bridge/netfilter/ebt_ip.c#L36