From 89d3eeaeca6e97fe488c2f110971d197f5c0baa3 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Wed, 5 Feb 2003 12:21:22 +0000 Subject: Update: net/ddup (3.0.1) this patch set updates ddup to make it conformant w/ http://clients.dyndns.org/devel/query.php major changes where done by robert@castley.com, so, don't forget to give him credits in the CVS logs. PR: ports/40966 Submitted by: Cyrille Lefevre --- net/ddup/files/patch-update.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 net/ddup/files/patch-update.c (limited to 'net/ddup/files/patch-update.c') diff --git a/net/ddup/files/patch-update.c b/net/ddup/files/patch-update.c new file mode 100644 index 000000000000..6e84f17c7d06 --- /dev/null +++ b/net/ddup/files/patch-update.c @@ -0,0 +1,30 @@ +--- update.c.orig Tue Oct 31 01:10:02 2000 ++++ update.c Thu Jul 25 06:47:36 2002 +@@ -26,6 +26,8 @@ + extern int backmx_flag; + /* Flag set by '--static' (Added by Patrick D.) */ + extern int static_flag; ++extern int dynamic_flag; ++extern int custom_flag; + /* Vars for other options */ + extern char *ip_address; + extern char *host_id; +@@ -125,11 +127,14 @@ + strcat(buf_out, "/nic/update?system="); + + if (static_flag) +- strcat(buf_out, "stat"); +- else +- strcat(buf_out, "dyn"); ++ strcat(buf_out, "statdns"); ++ else if (dynamic_flag) ++ strcat(buf_out, "dyndns"); ++ else if (custom_flag) ++ strcat(buf_out, "custom"); + +- strcat(buf_out, "dns&hostname="); ++ ++ strcat(buf_out, "&hostname="); + strcat(buf_out, host_id); + + if (ip_address) -- cgit v1.2.3