diff -u old/pppoe-0.1/Makefile ./Makefile --- old/pppoe-0.1/Makefile Fri Sep 24 16:29:14 1999 +++ ./Makefile Fri Sep 24 16:32:35 1999 @@ -1,7 +1,12 @@ #CFLAGS= -Wall -pedantic -ansi -g CFLAGS= -Wall -pedantic -ansi -O2 +VERSION= 0.2 + pppoe: pppoe.o - $(CC) -o pppoe pppoe.o + $(CC) -o pppoe pppoe.o pppoe.o: pppoe.c + +distro: + tar czvf pppoe-$(VERSION).tar.gz README LICENSE pppoe.c Makefile diff -u old/pppoe-0.1/pppoe.c ./pppoe.c --- old/pppoe-0.1/pppoe.c Fri Sep 24 16:14:12 1999 +++ ./pppoe.c Fri Sep 24 16:30:46 1999 @@ -18,9 +18,10 @@ * * Revision History * 1999/09/22 stras Initial version + * 1999/09/24 stras Changed header files for greater portability */ -#include +#include #include #include #include @@ -32,7 +33,7 @@ #include #include #include -#include +#include #include #include @@ -636,14 +637,14 @@ char dst_addr[ETH_ALEN]; /* destination hardware address */ char *if_name = NULL; /* interface to use */ - int disc_sock, sess_sock, socks[3]; /* raw socket we use */ + int disc_sock = 0, sess_sock = 0, socks[3]; /* raw socket we use */ int in_sock; struct pppoe_packet *packet = NULL; int pkt_size; int state = CODE_PADI; - int session; + int session = 0; unsigned char buf[MAX_PAYLOAD]; int bufsize;