lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 13 Aug 2020 00:16:16 +0300
From:   Denis Gubin <denis.gubin@...il.com>
To:     netdev@...r.kernel.org
Subject: tc -j filter show with actions is not json valid

Hello everybody!

Could you help me, please?

I use Debian 10 and iproute2 version iproute2

dpkg -l iproute2
iproute2       4.20.0-2 amd64

My problem is this:
I can't convert "tc -j filter show u32" command to  json format.
Here it is command:
tc qdisc add dev eno1 ingress
tc filter add dev eno1 parent ffff: protocol all u32 match u8 0 0
action mirred egress mirror dev lo

Have a look:

~$ tc -j filter show parent ffff: dev eno1
[{
        "protocol": "all",
        "pref": 49152,
        "kind": "u32",
        "chain": 0
    },{
        "protocol": "all",
        "pref": 49152,
        "kind": "u32",
        "chain": 0,
        "options": {fh 800: ht divisor 1 }
    },{
        "protocol": "all",
        "pref": 49152,
        "kind": "u32",
        "chain": 0,
        "options": {fh 800::800 order 2048 key ht 800 bkt 0 terminal
flowid ??? not_in_hw
  match 00000000/00000000 at 0
            "actions": [{
                    "order": 1,
                    "kind": "mirred",
                    "mirred_action": "mirror",
                    "direction": "egress",
                    "to_dev": "lo",
                    "control_action": {
                        "type": "pipe"
                    },
                    "index": 1,
                    "ref": 1,
                    "bind": 1
                }]
        }
    }
]


May be problem when there is actions in tc filter the problem is... I
don't know about it.
Have a look:

"options": {fh 800::800 order 2048 key ht 800 bkt 0 terminal flowid
??? not_in_hw
  match 00000000/00000000 at 0
    "actions":

The json output is not valid.
Has somebody made a patch for fix it?

Thanks a lot for your answers!

-- 
Best regards,
Denis Gubin

Powered by blists - more mailing lists