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_none.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto_none.c') diff --git a/proto_none.c b/proto_none.c index 0c0f62a..6b36962 100644 --- a/proto_none.c +++ b/proto_none.c @@ -14,7 +14,7 @@ void empty(struct pkt_buff *pkt __maybe_unused) {} -static void _hex(uint8_t *ptr, size_t len) +void _hex(uint8_t *ptr, size_t len) { if (!len) return; @@ -36,7 +36,7 @@ void hex(struct pkt_buff *pkt) tprintf("\n"); } -static void _ascii(uint8_t *ptr, size_t len) +void _ascii(uint8_t *ptr, size_t len) { if (!len) return; -- cgit v1.2.3-54-g00ecf