summaryrefslogtreecommitdiffstats
path: root/ax25/mheardd.c
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/mheardd.c
parent1aedd6aa05b95a9ddea6ee7fc2693a2e861f7d9b (diff)
used PF_PACKET for SOCK_PACKET sockets, added time.h to axspawn.c
Diffstat (limited to 'ax25/mheardd.c')
-rw-r--r--ax25/mheardd.c2
1 files changed, 1 insertions, 1 deletions
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;
}