Add format_hexdump function 70/1470/4
authorDamjan Marion <[email protected]>
Thu, 9 Jun 2016 10:38:22 +0000 (12:38 +0200)
committerChris Luke <[email protected]>
Thu, 9 Jun 2016 17:23:22 +0000 (17:23 +0000)
commita7e83ceeacccb20516ffdd8e1beb9695c1e977b1
tree1f0a96acee52391ae98f4e96c4b6390da273816f
parent0febaf15dac4f3edce64a997dcd04f99a51fa759
Add format_hexdump function

Function output is compatible with text2pcap tool

Sample output:

00000: 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 [The quick brown ]
00010: 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20 74 [fox jumps over t]
00020: 68 65 20 6c 61 7a 79 20 64 6f 67 00             [he lazy dog.]

Change-Id: If77ec7d91b77146df770698e0cf35fe2f6dd0821
Signed-off-by: Damjan Marion <[email protected]>
vppinfra/vppinfra/format.h
vppinfra/vppinfra/std-formats.c