English 中文(简体)
校正
原标题:Packets looping forever in libnetfilter_queue

我想实施所述TCP/UDP交通网络延误模式。 。 我遵循了Andy There的建议,把整个包裹复制到我的节目中,把它列为一个优先事项。 随着时间的推移,将优先排队中的包装物从中删除,并用妇女观察所的袖珍材料发送。

我面临的问题是:通过港口配对来初步捕获包装(超级港口——A OUTPUT-p udp——8000-j NF RequestUE——queue-num 0)。 当这些包裹被区域妇女联盟的袖珍重新吸收时,它们再次被校正网过滤器(因为港口仍然相同),因此继续永远停泊。

我确实感到困惑,不能想出一条出路。 请帮助我。

最佳回答

Use skb->mark. It s a marking which only exists within the IP stack of your host. It does not affect anything in the network packet itself.

您可以使用——标记过滤器过滤器过滤器。 利用它从你的拖延链中返回,使你重新插入的包装不再拖延。

iptables -A DELAY -m mark --mark 0xE -j RETURN
iptables -A DELAY -j DELAY

您可使用<代码>setsockopt(fd, SOL_SOCKET,SO_MARK, ......)对原始材料进行组合。 你们在开张后只需要这样做。 标记值将自动适用于通过记本表发送的每一箱。

问题回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签