diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-05 12:21:22 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-05 12:21:22 +0000 |
commit | 89d3eeaeca6e97fe488c2f110971d197f5c0baa3 (patch) | |
tree | c55916e913414c61c2fe31b431162ef1e003f750 /net/ddup/files/patch-update.c | |
parent | Update to 2.1024 (diff) |
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 <cyrille.lefevre@laposte.net>
Notes
Notes:
svn path=/head/; revision=74852
Diffstat (limited to 'net/ddup/files/patch-update.c')
-rw-r--r-- | net/ddup/files/patch-update.c | 30 |
1 files changed, 30 insertions, 0 deletions
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) |