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

Lines Matching refs:item_name

42  * item_name  - name of config item to locate
45 char *config_item_str(cnode *root, const char *item_name, const char *defaultvar) {
48 if(!(tmp = config_str(root, item_name, defaultvar))) {
49 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
58 * item_name - name of config item to locate
62 int16_t *config_item_int16_t(cnode *root, const char *item_name, const char *defaultvar, int16_t *ret_val_ptr) {
67 if(!(tmp = config_str(root, item_name, defaultvar))) {
68 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
75 logmsg(ANDROID_LOG_FATAL,"%s config item is not numeric: %s (error=%s)",item_name,tmp,strerror(errno));
79 logmsg(ANDROID_LOG_FATAL,"%s config item is not numeric: %s",item_name,tmp);
83 logmsg(ANDROID_LOG_FATAL,"%s config item contains non-numeric characters: %s",item_name,endptr);
87 logmsg(ANDROID_LOG_FATAL,"%s config item is too big/small: %d",item_name,conf_int);
97 * item_name - name of config item to locate
101 struct in_addr *config_item_ip(cnode *root, const char *item_name, const char *defaultvar, struct in_addr *ret_val_ptr) {
105 if(!(tmp = config_str(root, item_name, defaultvar))) {
106 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
112 logmsg(ANDROID_LOG_FATAL,"invalid IPv4 address specified for %s: %s", item_name, tmp);
122 * item_name - name of config item to locate
126 struct in6_addr *config_item_ip6(cnode *root, const char *item_name, const char *defaultvar, struct in6_addr *ret_val_ptr) {
130 if(!(tmp = config_str(root, item_name, defaultvar))) {
131 logmsg(ANDROID_LOG_FATAL,"%s config item needed",item_name);
137 logmsg(ANDROID_LOG_FATAL,"invalid IPv6 address specified for %s: %s", item_name, tmp);