option = set_dhcp_option ( context->options, setting->tag,
value, strlen ( value ) );
if ( ! option )
- return -ENOMEM;
+ return -ENOSPC;
return 0;
}
struct in_addr ipv4;
int rc;
- if ( ( rc = inet_aton ( value, &ipv4 ) ) == 0 )
- return rc;
+ if ( inet_aton ( value, &ipv4 ) == 0 )
+ return -EINVAL;
option = set_dhcp_option ( context->options, setting->tag,
&ipv4, sizeof ( ipv4 ) );
if ( ! option )
- return -ENOMEM;
+ return -ENOSPC;
return 0;
}
option = set_dhcp_option ( context->options, setting->tag,
&u.bytes[ sizeof ( u ) - size ], size );
if ( ! option )
- return -ENOMEM;
+ return -ENOSPC;
return 0;
}