Added support for UDP in flowtop
[netsniff-ng.git] / src / misc.c
blob5e74b4757ad8f8d5003a2829001a2f5d779e4ea3
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2011 Daniel Borkmann.
5 * Subject to the GPL, version 2.
6 */
8 #include <unistd.h>
9 #include <sys/types.h>
11 #include "die.h"
12 #include "misc.h"
14 void check_for_root_maybe_die(void)
16 if (geteuid() != 0 || geteuid() != getuid())
17 panic("Uhhuh, not root?!\n");