Skip to content

Commit

Permalink
More conversion to FR_CONF_OFFSET
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 29, 2014
1 parent fd001a3 commit ed597c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/client.c
Expand Up @@ -509,12 +509,11 @@ static CONF_PARSER limit_config[] = {
static const CONF_PARSER client_config[] = {
{ "ipaddr", FR_CONF_POINTER(PW_TYPE_IPADDR, &cl_ip4addr), NULL },
{ "ipv6addr", FR_CONF_POINTER(PW_TYPE_IPV6ADDR, &cl_ip6addr), NULL },
{ "netmask", PW_TYPE_INTEGER, offsetof(RADCLIENT, prefix), 0, NULL },
{ "netmask", FR_CONF_OFFSET(PW_TYPE_INTEGER, RADCLIENT, prefix), NULL },

{ "src_ipaddr", FR_CONF_POINTER(PW_TYPE_STRING, &cl_srcipaddr), NULL },

{ "require_message_authenticator", PW_TYPE_BOOLEAN,
offsetof(RADCLIENT, message_authenticator), 0, "no" },
{ "require_message_authenticator", FR_CONF_OFFSET(PW_TYPE_BOOLEAN, RADCLIENT, message_authenticator), "no" },

{ "secret", PW_TYPE_STRING | PW_TYPE_SECRET,
offsetof(RADCLIENT, secret), 0, NULL },
Expand Down

0 comments on commit ed597c9

Please sign in to comment.