Results 1 to 1 of 1
Hi,
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-24-2008 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 5
point to udp header
Hi,
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!


Reply With Quote
