Lines Matching defs:fn
113 char *fn; /* Filename as passed to us */
114 in_addr_t fip; /* fn's IP component */
115 char *fp; /* fn's path component */
359 * returns Based on the interpretation of fn
361 * 1 in format IP::FN
366 * -1 if fn is another URL type
368 int pxechn_parse_fn(char fn[], in_addr_t *fip, char *host, char *fp[])
375 csep = strchr(fn, ':');
377 if (csep[1] == ':') { /* assume IP::FN */
380 if (fn[0] != ':') {
381 hlen = hostlen_limit(csep - fn);
382 memcpy(host, fn, hlen);
397 plen = csep - fn;
398 if (strncmp(fn, "tftp", plen) == 0)
400 else if (strncmp(fn, "http", plen) == 0)
402 else if (strncmp(fn, "ftp", plen) == 0)
404 else if (strncmp(fn, "https", plen) == 0)
413 *fp = fn;
464 pxe->fn = NULL;
757 pxe->fn = argv[0];
758 pxechn_parse_fn(pxe->fn, &(pxe->fip), pxe->host, &(pxe->fp));
984 printf("%s: Attempting to load '%s': ", app_name_str, pxe.fn);
985 if (loadfile(pxe.fn, &file.data, &file.size)) {
1056 pxe.fn = ifn;
1062 rv = pxechn_parse_fn(pxe.fn, &(pxe.fip), pxe.host, &(pxe.fp));
1064 printf("%s: ERROR: Unparsable filename argument: '%s'\n\n", app_name_str, pxe.fn);
1067 printf(" Attempting to boot '%s'...\n\n", pxe.fn);
1077 dprintf("FN='%s' %08X %08X %08X %08X\n\n", (char *)pxep->FileName,