Lines Matching defs:flags
20 static int try_pvc(const char *text,struct sockaddr_atmpvc *addr,int flags)
44 if (!(flags & T2A_WILDCARD)) return FATAL; /* not allowed */
49 if (!(flags & T2A_UNSPEC)) return FATAL; /* not allowed */
64 if (part[1] > (flags & T2A_NNI ? ATM_MAX_VPI_NNI : ATM_MAX_VPI))
75 static int do_try_nsap(const char *text,struct sockaddr_atmsvc *addr,int flags)
125 if (*text == '/' && (flags & T2A_WILDCARD)) break;
149 static int try_nsap(const char *text,struct sockaddr_atmsvc *addr,int flags)
153 result = do_try_nsap(text,addr,flags);
161 static int try_e164(const char *text,struct sockaddr_atmsvc *addr,int flags)
184 result = do_try_nsap(text,addr,flags);
194 int flags)
205 result = text2atm(here,addr,length,flags);
214 int flags)
220 result = search(file,text,addr,length,flags);
226 int text2atm(const char *text,struct sockaddr *addr,int length,int flags)
231 if (!(flags & (T2A_PVC | T2A_SVC))) flags |= T2A_PVC | T2A_SVC;
233 if (flags & T2A_PVC) {
234 result = try_pvc(text,(struct sockaddr_atmpvc *) addr,flags);
237 if ((flags & T2A_SVC) && length >= sizeof(struct sockaddr_atmsvc)) {
238 result = try_nsap(text,(struct sockaddr_atmsvc *) addr,flags);
240 result = try_e164(text,(struct sockaddr_atmsvc *) addr,flags);
243 if (!(flags & T2A_NAME)) return -1;
244 result = try_name(text,addr,length,flags & ~T2A_NAME);
245 if (result == TRY_OTHER && !(flags & T2A_LOCAL))
246 result = ans_byname(text,(struct sockaddr_atmsvc *) addr,length,flags);