summaryrefslogtreecommitdiffstats
path: root/netrom
diff options
context:
space:
mode:
Diffstat (limited to 'netrom')
-rw-r--r--netrom/netromd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netrom/netromd.c b/netrom/netromd.c
index fa80ad3..7bfa97b 100644
--- a/netrom/netromd.c
+++ b/netrom/netromd.c
@@ -213,7 +213,7 @@ int main(int argc, char **argv)
ax25_aton_entry(nr_config_get_addr(NULL), (char *)&my_call);
ax25_aton_entry("NODES", (char *)&node_call);
- 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("netromd: socket");
return 1;
}