From 3c7e11bda507a2d447a2b7fef1467cf1cd26beb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Victor?= Date: Mon, 5 Jul 2021 19:30:39 +0200 Subject: [PATCH 1/2] Default ifmeth=pcap If no chudp-specific parameters given, and no ifmeth given, default to pcap. --- src/dvch11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dvch11.c b/src/dvch11.c index bcbfb3d..03da132 100644 --- a/src/dvch11.c +++ b/src/dvch11.c @@ -452,8 +452,8 @@ ch11_conf(FILE *f, char *s, struct ch11 *ch) fprintf(f, "CH11 assuming \"chudp\" interface method\n"); ch->ch_ifmeth = s_dup("chudp"); } else { - fprintf(f, "CH11 does not know which interface method to use, none specified?\n"); - return FALSE; + fprintf(f, "CH11 assuming \"pcap\" interface method since no chudp parameters given\n"); + ch->ch_ifmeth = s_dup("pcap"); } return ret; From 58decf2a1989859171e33e1894ddd4e9cead0288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Victor?= Date: Tue, 6 Jul 2021 17:25:40 +0200 Subject: [PATCH 2/2] Document default --- src/dvch11.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dvch11.txt b/src/dvch11.txt index fbad7c4..c3677b3 100644 --- a/src/dvch11.txt +++ b/src/dvch11.txt @@ -62,7 +62,8 @@ For "chudp": Global Chaosnet and just list its central router. See https://chaosnet.net.) -If chudpport or chip parameters are given, the ifmeth defaults to chudp. +If chudpport or chip parameters are given, the ifmeth defaults to chudp, +otherwise to pcap. If a CHUDP packet is received from an unknown host, a Chaos/IP mapping is dynamically added to the table, so return traffic can find its way.