flowtop, netsniff-ng: Move process name extraction to own function
commitc5ff2059f619ac91c14d55412314d1c67de6a593
authorTobias Klauser <tklauser@distanz.ch>
Fri, 17 Jul 2015 12:55:15 +0000 (17 14:55 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 17 Jul 2015 12:55:15 +0000 (17 14:55 +0200)
tree18c324c5d2bbbe9a913ae693ff75b109d050a1e5
parent5d6d5f85d8ed49698eb3d790308e05a50b784c54
flowtop, netsniff-ng: Move process name extraction to own function

flowtop and the netsniff-ng's netlink message dissector both need to get
the process name for a pid from /proc/<pid>/exe, thus move that
functionality to an own function.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop.c
flowtop/Makefile
proc.c
proc.h
proto_nlmsg.c