Home | History | Annotate | Download | only in android-clat

Lines Matching refs:item_name

41  * item_name  - name of config item to locate
44 char *config_item_str(cnode *root, const char *item_name, const char *defaultvar) {
47 if(!(tmp = config_str(root, item_name, defaultvar))) {
48 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
57 * item_name - name of config item to locate
61 int16_t *config_item_int16_t(cnode *root, const char *item_name, const char *defaultvar, int16_t *ret_val_ptr) {
66 if(!(tmp = config_str(root, item_name, defaultvar))) {
67 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
74 logmsg(ANDROID_LOG_FATAL,"%s config item is not numeric: %s (error=%s)",item_name,tmp,strerror(errno));
78 logmsg(ANDROID_LOG_FATAL,"%s config item is not numeric: %s",item_name,tmp);
82 logmsg(ANDROID_LOG_FATAL,"%s config item contains non-numeric characters: %s",item_name,endptr);
86 logmsg(ANDROID_LOG_FATAL,"%s config item is too big/small: %d",item_name,conf_int);
96 * item_name - name of config item to locate
100 struct in_addr *config_item_ip(cnode *root, const char *item_name, const char *defaultvar, struct in_addr *ret_val_ptr) {
104 if(!(tmp = config_str(root, item_name, defaultvar))) {
105 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
111 logmsg(ANDROID_LOG_FATAL,"invalid IPv4 address specified for %s: %s", item_name, tmp);
121 * item_name - name of config item to locate
125 struct in6_addr *config_item_ip6(cnode *root, const char *item_name, const char *defaultvar, struct in6_addr *ret_val_ptr) {
129 if(!(tmp = config_str(root, item_name, defaultvar))) {
130 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
136 logmsg(ANDROID_LOG_FATAL,"invalid IPv6 address specified for %s: %s", item_name, tmp);