diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 2004-02-23 04:42:13 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 2004-02-23 04:42:13 +0000 |
commit | 60aab665670e50cb18bba45ee25f2ed091759741 (patch) | |
tree | 924c1af9c149083e0626ceb279b67ad6ca69e630 /net/wide-dhcp/files/patch-ac | |
parent | BROKEN on !i386: Does not compile (diff) |
Say hello to the new "net-mgmt" category. There are probably more
ports that belong here than the ones I have identified and moved in
this, first, pass.
Approved in principle by: marcus
Diffstat (limited to 'net/wide-dhcp/files/patch-ac')
-rw-r--r-- | net/wide-dhcp/files/patch-ac | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/net/wide-dhcp/files/patch-ac b/net/wide-dhcp/files/patch-ac deleted file mode 100644 index 36fcc36aa7d7..000000000000 --- a/net/wide-dhcp/files/patch-ac +++ /dev/null @@ -1,53 +0,0 @@ ---- client/dhcpc_subr.c.orig Fri Jan 1 06:21:08 1999 -+++ client/dhcpc_subr.c Sun Feb 7 10:46:25 1999 -@@ -170,6 +170,8 @@ - - int config_if(); - void set_route(); -+void set_resolv(); -+void set_hostname(); - void make_decline(); - void make_release(); - Long generate_xid(); -@@ -3221,4 +3223,41 @@ - - buf += OPTLEN(buf) + 1; - return(0); -+} -+ -+void -+set_resolv(param) -+struct dhcp_param *param; -+{ -+ FILE *fp; -+ int i; -+ -+ /* -+ * set resolv.conf -+ */ -+ if (param && param->dns_server != NULL) { -+ if (param->dns_server->num && param->dns_server->addr != NULL) { -+ unlink(_PATH_RESCONF); -+ if ((fp = fopen(_PATH_RESCONF, "w")) == NULL) { -+ return; -+ } -+ if (param->dns_domain != NULL) -+ fprintf(fp, "domain %s\n", param->dns_domain); -+ if (param->dns_server->addr) -+ for (i = 0; i < param->dns_server->num; i++) { -+ fprintf(fp,"nameserver %s\n",inet_ntoa(param->dns_server->addr[i])); -+ } -+ fclose(fp); -+ } -+ } -+} -+ -+void -+set_hostname(param) -+struct dhcp_param *param; -+{ -+ if (param && param->hostname != NULL) { -+ sethostname(param->hostname,strlen(param->hostname)); -+ } -+ return; - } |