Results 1 to 1 of 1
Thread: point to udp header
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2007
point to udp header
May I know how to point to the udp destination port of an ipv6 packet? I'd tried
struct udphdr *uh = skb->h.uh;
struct udphdr *uh = (struct udphdr *)(skb->data + sizeof(struct ipv6hdr));
printk(KERN_ALERT "udp dest port:%d", ntohs(uh->dest));
but I cant get the right udp destination port printed as shown in ethereal. Any advice? Thanks!