运行以下代码,我想接受已定义的 IP 数据包但丢弃所有数据包.. 我的错误在哪里?请帮我
struct iphdr* iph = ip_hdr(skb);
struct sk_buff *sb = *skb;
struct in_addr masterIP;
masterIP.s_addr = htonl (in_aton("192.168.1.10"));
iph->saddr = masterIP.s_addr;
return NF_ACCEPT;
运行以下代码,我想接受已定义的 IP 数据包但丢弃所有数据包.. 我的错误在哪里?请帮我
struct iphdr* iph = ip_hdr(skb);
struct sk_buff *sb = *skb;
struct in_addr masterIP;
masterIP.s_addr = htonl (in_aton("192.168.1.10"));
iph->saddr = masterIP.s_addr;
return NF_ACCEPT;