From: Roy Marples Date: Fri, 1 Dec 2006 16:22:15 +0000 (+0000) Subject: Add userlen back X-Git-Tag: v3.2.3~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f581197c47178570bfb9c0fb11d3271c14dc40e;p=thirdparty%2Fdhcpcd.git Add userlen back --- diff --git a/dhcpcd.c b/dhcpcd.c index 0e5a5b20..b1e2ef6a 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -243,6 +243,7 @@ int main(int argc, char **argv) userclasses++; memcpy (options.userclass + offset + 1 , optarg, strlen (optarg)); options.userclass[offset] = strlen (optarg); + options.userclass_len += (strlen (optarg)) + 1; } break; case 'F': diff --git a/dhcpcd.h b/dhcpcd.h index 820ab86c..6c340aeb 100644 --- a/dhcpcd.h +++ b/dhcpcd.h @@ -45,6 +45,7 @@ typedef struct options_t { char classid[CLASS_ID_MAX_LEN]; char clientid[CLIENT_ID_MAX_LEN]; char userclass[USERCLASS_MAX_LEN]; + int userclass_len; unsigned leasetime; time_t timeout; int metric;