summaryrefslogtreecommitdiffstats
path: root/dump.h
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-04-08 18:30:55 +0900
committerLorenzo Colitti <lorenzo@google.com>2013-04-10 09:37:51 +0900
commitf913fe49272286a7f1e58d94a208b6dc06a51fd2 (patch)
tree1b8e60793e43df6a37d33cd505f2eb51084a6efe /dump.h
parent0278627f576832860af2d84e04e383ecaa92d74f (diff)
downloadandroid_external_android-clat-f913fe49272286a7f1e58d94a208b6dc06a51fd2.tar.gz
android_external_android-clat-f913fe49272286a7f1e58d94a208b6dc06a51fd2.tar.bz2
android_external_android-clat-f913fe49272286a7f1e58d94a208b6dc06a51fd2.zip
Slightly improve dumping packets
Add a function for dumping iovecs, and make hexdumps clearer by adding spaces between bytes. Bug: 8276725 Change-Id: Ifb2f8317613d05fa6bd600700090a6df258cde08
Diffstat (limited to 'dump.h')
-rw-r--r--dump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dump.h b/dump.h
index 6ca44bd..9cb040c 100644
--- a/dump.h
+++ b/dump.h
@@ -29,5 +29,6 @@ void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const char *
void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const char *payload, size_t payload_size, const char *options, size_t options_size);
void logcat_hexdump(const char *info, const char *data, size_t len);
+void dump_iovec(const struct iovec *iov, int iov_len);
#endif /* __DUMP_H__ */