From 83e0c196b189513318093a6bf94f783c95e37b4f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 19 Oct 2015 17:18:23 +0200 Subject: netsniff-ng: proto: Make raw hex/ascii print function globally available Allow other dissectors to access the hex/ascii printing functions with a raw uint8_t* instead of only through struct pkt_buff. Signed-off-by: Tobias Klauser --- proto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'proto.h') diff --git a/proto.h b/proto.h index 227a748..0cc1fd8 100644 --- a/proto.h +++ b/proto.h @@ -26,7 +26,9 @@ struct protocol { }; extern void empty(struct pkt_buff *pkt); +extern void _hex(uint8_t *ptr, size_t len); extern void hex(struct pkt_buff *pkt); +extern void _ascii(uint8_t *ptr, size_t len); extern void ascii(struct pkt_buff *pkt); extern void hex_ascii(struct pkt_buff *pkt); -- cgit v1.2.3-54-g00ecf