Re[2]: [pso] Porturi si protocol

Ion Petrescu pso@cursuri.cs.pub.ro
Sun, 20 Jun 2004 11:27:55 +0300


Cred ca mai jos s-a strecurat o eroare, ar trebui sa fie:
struct tcphdr *tcp = (struct tcphdr*)((__u32*)ip+ip->ihl)

Sunday, May 30, 2004, 7:44:10 PM, you wrote:
MI> Asa se obtin porturile
MI> struct iphdr *ip = skb->nh.iph
MI> struct tcphdr *tcp = (struct tcphdr*)((__u32*)(ip+ip->ihl))
... ntohs(tcp->>dest))
... ntohs(tcp->>source)