website: start working on basic/webserver

This commit is contained in:
Vince Weaver 2016-11-19 19:31:45 -05:00
parent 9ee9ec7729
commit 5cab4ef193
2 changed files with 25 additions and 0 deletions

13
webserver/Makefile Normal file
View File

@ -0,0 +1,13 @@
CC = gcc
CFLAGS = -Wall -O2
all: testarp
testarp: testarp.o
$(CC) $(LFLAGS) -o testarp testarp.o
testarp.o: testarp.c
$(CC) $(CFLAGS) -c testarp.c
clean:
rm -f *~ *.o testarp

12
webserver/testarp.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
#include <pcap.h>
int main(int argc, char **argv) {
char device[]="wlan0";
printf("Using device: %s\n", device);
return 0;
}