const char *next;
int Error;
+ if (strncasecmp(buf,"re:",3)==0) {
#ifdef USE_PCRE
- if (strncasecmp(buf,"re:",3)==0) {
- if (Alias_StoreRegexp(buf+3)<0)
- return(-1);
- return(0);
- }
-#endif
- type=extract_address_mask(buf,&name,ipv4,ipv6,&nbits,&next);
- if (type<0) {
+ if (Alias_StoreRegexp(buf+3)<0)
return(-1);
- }
-
- if (type==1) {
- Error=Alias_StoreName(name,next);
- } else if (type==2) {
- Error=Alias_StoreIpv4(ipv4,nbits,next);
- } else if (type==3) {
- Error=Alias_StoreIpv6(ipv6,nbits,next);
- }
- if (Error<0) return(-1);
return(0);
+#else
+ debuga(_("PCRE not compiled in therefore the regular expressions are not available in the host alias file\n"));
+ return(-1);
+#endif
+ }
+ type=extract_address_mask(buf,&name,ipv4,ipv6,&nbits,&next);
+ if (type<0) {
+ return(-1);
+ }
+
+ if (type==1) {
+ Error=Alias_StoreName(name,next);
+ } else if (type==2) {
+ Error=Alias_StoreIpv4(ipv4,nbits,next);
+ } else if (type==3) {
+ Error=Alias_StoreIpv6(ipv6,nbits,next);
+ }
+ if (Error<0) return(-1);
+ return(0);
}
/*!