Jump to content

Recommended Posts

Posted

Во всех найденных примерах использования tc_actions, перед action указывается ключ flowid, который по идее классифицирует поток в тот или иной класс. Однако зачем использовать flowid, если фильтр не используется для классификации, а только для принятия какого либо action?

 

Причем фильтр применяется в обоих случаях - с указанным flowid и без него. Без определения flowid "tc filter ls" показывает - terminal flowid ??? :

flowid 1:1

# tc filter add dev eth0.15 parent 1:0 protocol ip pref 1 u32 match ip src 10.100.1.6/32 flowid 1:1 action pass
# tc filter ls dev eth0.15
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1    <------------
  match 0a640106/ffffffff at 12
        action order 1: gact action pass
         random type none pass val 0
         index 5 ref 1 bind 1

 

без flowid

# tc filter add dev eth0.15 parent 1:0 protocol ip pref 1 u32 match ip src 10.100.1.6/32 action pass
# tc filter ls dev eth0.15
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 terminal flowid ???    <------------
  match 0a640106/ffffffff at 12
        action order 1: gact action pass
         random type none pass val 0
         index 4 ref 1 bind 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.