>From: Pablo Neira Ayuso >Date: 2015-04-02 >To: Zhang, Chunyu/章 春宇 >Subject: Re: [PATCH V4 0/3] Add mark target > >On Sun, Mar 29, 2015 at 10:35:45PM -0400, Zhang Chunyu wrote: >> v1: >> add mark target for arptables >> >> v2: >> add --and-mark >> add --or-mark >> add revision for common api >> >> v3: >> fold 2/4, 3/4 and 4/4 patch into one single patch >> use C99 initialization >> change some format >> >> V4: >> resubmit the kernel patch > >net/netfilter/xt_mark.c is missing a small change, you have to add >MODULE_ALIAS("arpt_MARK"). > >And after that, I hitting here: > ># arptables -I OUTPUT -j MARK --set-mark 1 >arptables: Protocol wrong type for socket i will add MODULE_ALIAS("arpt_MARK"). will test and answer again now i use : # modprobe xt_mark # ./arptables -I OUTPUT -j MARK --set-mark 1 # ./arptables --list Chain INPUT (policy ACCEPT) Chain OUTPUT (policy ACCEPT) -j MARK --set-mark 1 Chain FORWARD (policy ACCEPT) > >With my arptables patches applied in first place, so I suspect the >right revision is not being set in what we send to the kernel from >userspace.��.n��������+%������w��{.n����z�����n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�