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)