iptables --set-xmark是否表示“逻辑与”和“逻辑异或”?

时间:2018-07-31 04:12:03

标签: iptables

我读了Some questions about “-set-xmark” in iptablesDebian manual page(我使用Debian)。

但是我有问题。

Debian页面说:

  

-set-xmark值[/ mask]

     

将掩码和XOR值给定的位清零到ctmark中。

我无法理解“将掩码给出的位清零”。 'mask'表示逻辑AND吗?

例如。我写了@NgModule({ imports: [ RouterModule.forRoot(appRoutes) ], exports: [ ] }) ,我想这就是--set-xmark 0x1000/0xFF00 => 0x1000 AND 0xFF00的意思。

我认为ctmark的值是当前值。如果ctmark值为0,该怎么办。 因此0x1000 => 0x1000 XOR 0x0000

摘要:0x1000--set-xmark 0x1000/0xFF00 => (0x1000 AND 0xFF00) XOR 0x0000)

可以吗?

0 个答案:

没有答案