Pro

manelz Messages postés 40 Statut Membre -  
manelz Messages postés 40 Statut Membre -
svp explique moi de quoi s'agit chaque structure

struct iphdr *iph = ip_hdr(*pskb);
struct tcphdr *tcph, tcpbuf;

if (iph->protocol != IPPROTO_TCP)
return NF_ACCEPT;

tcph = skb_header_pointer(*pskb, ip_hdrlen(*pskb), sizeof(*tcph), &tcpbuf);
if (tcph == NULL)
return NF_ACCEPT;

return (tcph->dest == port) ? NF_DROP : NF_ACCEPT;

1 réponse