summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorMichael Taylor <mctaylor@mctaylor.com>2002-11-03 19:51:10 +0000
committerMichael Taylor <mctaylor@mctaylor.com>2002-11-03 19:51:10 +0000
commitc52cae4e44c0b53ece5f3bd55cb6777239223cdb (patch)
treeb9578e8d0219c8f156fe108f5d2bf9994127a188 /ax25
parent1aedd6aa05b95a9ddea6ee7fc2693a2e861f7d9b (diff)
used PF_PACKET for SOCK_PACKET sockets, added time.h to axspawn.c
Diffstat (limited to 'ax25')
-rw-r--r--ax25/axspawn.c3
-rw-r--r--ax25/mheardd.c2
-rw-r--r--ax25/rxecho.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/ax25/axspawn.c b/ax25/axspawn.c
index ab5ab92..6c63fde 100644
--- a/ax25/axspawn.c
+++ b/ax25/axspawn.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: axspawn.c,v 1.6 1996/08/24 22:33:05 jreuter Exp jreuter $
+ * $Id: axspawn.c,v 1.2 2002/11/03 19:51:10 mctaylor Exp $
*
* axspawn.c - run a program from ax25d.
*
@@ -125,6 +125,7 @@
#include <errno.h>
#include <syslog.h>
#include <sys/time.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
diff --git a/ax25/mheardd.c b/ax25/mheardd.c
index f1a6aab..d0aab98 100644
--- a/ax25/mheardd.c
+++ b/ax25/mheardd.c
@@ -182,7 +182,7 @@ int main(int argc, char **argv)
fclose(fp);
}
- if ((s = socket(AF_INET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) {
+ if ((s = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) {
perror("mheardd: socket");
return 1;
}
diff --git a/ax25/rxecho.c b/ax25/rxecho.c
index 0dd601f..a9f9a64 100644
--- a/ax25/rxecho.c
+++ b/ax25/rxecho.c
@@ -350,7 +350,7 @@ int main(int argc, char **argv)
if ((list = readconfig()) == NULL)
return 1;
- if ((s = socket(AF_INET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) {
+ if ((s = socket(PF_PACKET, SOCK_PACKET, htons(ETH_P_AX25))) == -1) {
perror("rxecho: socket:");
return 1;
}