OSDN Git Service

Improve sock_diag debugging code.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 5 Feb 2016 03:58:07 +0000 (12:58 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Fri, 5 Feb 2016 04:03:18 +0000 (13:03 +0900)
commitc5673f350e1e38b101a4cceb221a7beddc89ba78
tree4ed365e07d950ccbeec90d3b74577d87787c417a
parent4a5dafcc3093d55fc9d135b9a18c73bd96bcf3b1
Improve sock_diag debugging code.

- Unbreak GetConstantName on modules that contain constants whose
  names start with "INET_DIAG_BC".
- Honour NL_DEBUG when sending dump requests.
- Decode sock_diag messages differently depending on whether
  they are requests or responses.
- Print sock_diag bytecode hex-encoded instead of raw.

Change-Id: I3cc20ab635d1ff4f137aa0f9ff0ff88b1a37ce72
tests/net_test/netlink.py
tests/net_test/sock_diag.py