diff options
author | Carlos Falgueras García <carlosfg@riseup.net> | 2016-06-08 11:17:57 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-08 13:54:47 +0200 |
commit | 610b1208a4d87b874e55982d44c0a9a1a1b7b00d (patch) | |
tree | 790bb8a38e06adc11d565176f243a032ba11aea8 /src/callback.c | |
parent | 1891e0e2cefced50e7bfdacd50942cefe5bf73ba (diff) |
nlmsg: Improve payload printing
It makes more sense to use isprint() than isalnum() because we use non
alphanumeric characters like '%', '_', etc. And, in case of non
printable character, print a space is preferable to print a NULL (0) in
order to keep alignment.
Before:
...
|00012|--|00002| |len |flags| type|
| 5f 5f 73 65 | | data | s e
| 74 25 64 00 | | data | t d
...
After:
...
|00012|--|00002| |len |flags| type|
| 5f 5f 73 65 | | data | _ _ s e
| 74 25 64 00 | | data | t % d
...
Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/callback.c')
0 files changed, 0 insertions, 0 deletions