/* * netsniff-ng - the packet sniffing beast * Copyright (C) 2009, 2010 Daniel Borkmann * Copyright (C) 2012 Christoph Jaeger * Subject to the GPL, version 2. */ #ifndef PROTO_H #define PROTO_H #include #include #include "tprintf.h" struct pkt_buff; struct protocol { /* Needs to be filled out by user */ const unsigned int key; void (*print_full)(struct pkt_buff *pkt); void (*print_less)(struct pkt_buff *pkt); /* Used by program logic */ struct protocol *next; void (*process) (struct pkt_buff *pkt); }; 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); #endif /* PROTO_H */ hidden' name='id' value='56cff471d0c62b721a298f806e7637501debb513'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
lude
mode:
authorNamhyung Kim <namhyung@kernel.org>2016-05-10 23:53:05 +0900
committerShuah Khan <shuahkh@osg.samsung.com>2016-05-16 09:01:49 -0600
commit5a614ec8a7cfe9098475fa1221b409fb7eec6054 (patch)
tree20b5f1687c46d778514306ec70f21bc1a1ac05a9 /Documentation/devicetree
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
kselftests/ftrace: Detect tracefs mount point
Currently ftracetest assumes tracing directory is located under $DEBUGFS/tracing. But it's possible to mount tracefs directly without debugfs. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'Documentation/devicetree')