Show Table of Contents
3.8. net_cls
net_cls 子系統會以一個 class 標識符號(classid)來標記網路封包,這能讓 Linux 流量控制器(tc)辨識源自於特定控制群組的封包。流量控制器能被配置來指定不同的優先順序給來自於不同控制群組的封包。
- net_cls.classid
net_cls.classid包含了一個格式為十六進位的單獨數值,它顯示了流量控制控點(handle)。比方說,0x1001代表了照慣例寫成10:1的控點。這些控點的格式為:0xAAAABBBB,AAAA 為十六進位的 major 數字,而 BBBB 則為十六進位的 minor 數字。您可忽略掉前綴的零;0x10001和0x00010001是相同的,並且代表1:1。
欲學習如何配置流量控制器,以使用
net_cls 附加至網路封包的 handle,請參閱 tc 的 man page。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.