diff --git a/extensions/pknock/Makefile.am b/extensions/pknock/Makefile.am index 18342eb..a7273ad 100644 --- a/extensions/pknock/Makefile.am +++ b/extensions/pknock/Makefile.am @@ -1,5 +1,8 @@ # -*- Makefile -*- +AM_CPPFLAGS = ${regular_CPPFLAGS} +AM_CFLAGS = ${regular_CFLAGS} + include ../../Makefile.extra noinst_PROGRAMS = pknlusr diff --git a/extensions/pknock/pknlusr.c b/extensions/pknock/pknlusr.c index c1d0ff2..6153bf6 100644 --- a/extensions/pknock/pknlusr.c +++ b/extensions/pknock/pknlusr.c @@ -13,7 +13,6 @@ #define GROUP 1 static struct sockaddr_nl src_addr, dest_addr; -static struct msghdr msg; static int sock_fd; static unsigned char *buf; @@ -25,9 +24,8 @@ int main(void) socklen_t addrlen; int status; int group = GROUP; - struct cn_msg *cnmsg; - int i, buf_size; + int buf_size; const char *ip; char ipbuf[48];