[Click] tcp->thdport and udp->uh_dport not returning correct values
milos rovcanin
ro1208984 at gmail.com
Fri May 13 09:33:34 EDT 2011
Greetings,
Like it's said in the subject, this code:
click_ether * eth = (click_ether *)p->data();
click_ip6 * ip6 = (click_ip6 *)(eth+1);
if(ip6->ip6_nxt == 6) {
click_tcp* tcp = (click_tcp*)(ip6+1);
src_port = tcp->th_sport;
dst_port = tcp->th_dport;
}
just won't return correct values for dst_port and src_port! I have checked
it in Wireshark too.
What am I doing wrong?
Thanks in advance!
--
Milos Rovcanin
Department of Information Technology
Internet Based Communication Networks and Services research group (IBCN)
Ghent University - IBBT
Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
T: +32 9 33 14946 ; T Secr: +32 9 33 14900
E: Milos.Rovcanin at intec.UGent.be
W: www.ibcn.intec.UGent.be
More information about the click
mailing list