标签: linux-kernel
运行以下代码,我想接受定义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;