Lines Matching +defs:source +defs:path

5  * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
745 * source types what interfaces they have.
1737 * Parse a capture source that might be a URL.
1739 * If the source is not a URL, *schemep, *userinfop, *hostp, and *portp
1740 * are set to NULL, *pathp is set to point to the source, and 0 is
1743 * If source is a URL, and the URL refers to a local device (a special
1747 * If source is a URL, and it's not a special case that refers to a local
1765 * path;
1772 pcap_parse_source(const char *source, char **schemep, char **userinfop,
1782 char *userinfo, *host, *port, *path;
1798 * hier-part = "//" authority path-abempty
1799 * / path-absolute
1800 * / path-rootless
1801 * / path-empty
1808 * A colon in the source is *NOT* sufficient to indicate that
1813 colonp = strchr(source, ':');
1816 * The source is the device to open.
1818 * host, and port, and return the device as the path.
1820 *pathp = strdup(source);
1831 * hier-part = "//" authority path-abempty, not
1832 * hier-part = path-absolute
1833 * hier-part = path-rootless
1834 * hier-part = path-empty
1841 * The source is the device to open.
1843 * host, and port, and return the device as the path.
1845 *pathp = strdup(source);
1862 scheme_len = colonp - source;
1869 memcpy(scheme, source, scheme_len);
1903 * host, and port, and return the device as the path.
2084 * Everything else is the path. Strip off the leading /.
2087 path = strdup("");
2089 path = strdup(endp + 1);
2090 if (path == NULL) {
2103 *pathp = path;
2108 pcapint_createsrcstr_ex(char *source, int type, const char *host, const char *port,
2114 pcapint_strlcpy(source, PCAP_SRC_FILE_STRING, PCAP_BUF_SIZE);
2116 pcapint_strlcat(source, name, PCAP_BUF_SIZE);
2125 pcapint_strlcpy(source,
2135 pcapint_strlcat(source, "[", PCAP_BUF_SIZE);
2136 pcapint_strlcat(source, host, PCAP_BUF_SIZE);
2137 pcapint_strlcat(source, "]", PCAP_BUF_SIZE);
2139 pcapint_strlcat(source, host, PCAP_BUF_SIZE);
2142 pcapint_strlcat(source, ":", PCAP_BUF_SIZE);
2143 pcapint_strlcat(source, port, PCAP_BUF_SIZE);
2146 pcapint_strlcat(source, "/", PCAP_BUF_SIZE);
2154 pcapint_strlcat(source, name, PCAP_BUF_SIZE);
2159 pcapint_strlcpy(source, PCAP_SRC_IF_STRING, PCAP_BUF_SIZE);
2162 pcapint_strlcat(source, name, PCAP_BUF_SIZE);
2175 pcap_createsrcstr(char *source, int type, const char *host, const char *port,
2178 return (pcapint_createsrcstr_ex(source, type, host, port, name, 0, errbuf));
2182 pcapint_parsesrcstr_ex(const char *source, int *type, char *host, char *port,
2197 /* Parse the source string */
2198 if (pcap_parse_source(source, &scheme, &tmpuserinfo, &tmphost,
2278 pcapint_strlcpy(name, source, PCAP_BUF_SIZE);
2290 pcap_parsesrcstr(const char *source, int *type, char *host, char *port,
2293 return (pcapint_parsesrcstr_ex(source, type, host, port, name, NULL, errbuf));
2378 * source types until we find one that works for this
2859 * fall through to the regular open path.
3767 * POSIX implementation, and this source tree defines _GNU_SOURCE to
4220 // C:\Windows\System32) to the relative path of the DLL, so that the DLL
4221 // is always loaded from an absolute path (it's no longer possible to
4243 CHAR path[MAX_PATH];
4250 res = GetSystemDirectoryA(path, MAX_PATH);
4268 memcpy(fullFileName, path, res * sizeof(TCHAR));