pump-0.8.x enhancement
Bill.Stephens@fritolay.com
Bill.Stephens@fritolay.com
Wed Sep 20 11:01:00 GMT 2000
This is not a bug, but an enhancement to allow the use of a hostname directive
in the pump.conf file. This allows pump to send a hostname with the dhcp
request to the dhcp server. Some dhcp servers, like cable modem server require
a hostname to be passed with the dhcp request. It is also helpful with dhcp
servers that update a Dynamic DNS on behalf of the client. This is possible
using the existing pump code with the -h option, but not through the pump.conf.
%changelog
* Tue Sep 19 2000 Bill Stephens <bill.stephens@fritolay.com>
- Modified config.c to allow using hostname in the pump.conf file
- Modified pump.h to allow override-hostname
config.c patch-
*** pump-0.8/config.c Fri Aug 4 11:07:05 2000
--- pump-0.8.1/config.c Tue Sep 19 10:58:29 2000
*************** static int readStanza(char ** cfg, struc
*** 124,129 ****
--- 124,147 ----
}
override->timeout = num;
+
+
+ } else if (!strcmp(start, "hostname")) {
+ poptParseArgvString(rest, &argc, &argv);
+
+ if (argc != 1) {
+ parseError(*lineNum, "timeout directive expects a "
+ "single argument");
+ return 1;
+ }
+
+
+ override->hostname = strdup(argv[0]);
+
+
+
+
+
} else if (!strcmp(start, "retries")) {
poptParseArgvString(rest, &argc, &argv);
pump.h patch -
*** pump-0.8/pump.h Fri Aug 4 11:07:05 2000
--- pump-0.8.1/pump.h Tue Sep 19 10:57:54 2000
*************** struct pumpNetIntf {
*** 75,80 ****
--- 75,81 ----
struct pumpOverrideInfo {
struct pumpNetIntf intf;
char * searchPath;
+ char * hostname;
int flags;
int numRetries;
int timeout;
More information about the Sourcenav
mailing list