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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <e3bfc8e6-5522-4e65-373e-976388533765@gmail.com>
Date:   Fri, 14 Apr 2023 10:29:15 +0200
From:   Lars Ekman <uablrek@...il.com>
To:     netdev@...r.kernel.org
Subject: iproute2 bug in json output for encap

The destination is lost in json printout and replaced by the encap 
destination. The destination can even be ipv6 for an ipv4 route.

Example:

vm-002 ~ # ip route add 10.0.0.0/24 proto 5 dev ip6tnl6 encap ip6 dst 
fd00::192.168.2.221
vm-002 ~ # ip route show proto 5
10.0.0.0/24  encap ip6 id 0 src :: dst fd00::c0a8:2dd hoplimit 0 tc 0 
dev ip6tnl6 scope link
vm-002 ~ # ip -j route show proto 5 | jq
[
   {
     "dst": "fd00::c0a8:2dd",
     "encap": "ip6",
     "id": 0,
     "src": "::",
     "hoplimit": 0,
     "tc": 0,
     "dev": "ip6tnl6",
     "scope": "link",
     "flags": []
   }
]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ