Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 51) sorted by relevance

123

/mOS-networking-stack/samples/nat/
H A Dnat.c47 struct port { struct
48 uint16_t port; member
49 TAILQ_ENTRY(port) link;
54 static TAILQ_HEAD(, port) g_free_addrs;
61 struct port *w; in assign_port()
76 w->port, addr[MOS_SIDE_SVR].sin_port, g_core_limit) in assign_port()
111 (uint8_t *)&port, sizeof(in_port_t), in set_addr()
125 struct port *w; in translate_addr()
162 struct port *w; in release_port()
245 struct port *p = malloc(sizeof(struct port)); in main()
[all …]
/mOS-networking-stack/core/src/include/
H A Dnetmap_user.h615 const char *port = NULL; in nm_open() local
628 for (port = ifname; *port && !index("-*^{}/", *port); port++) in nm_open()
630 namelen = port - ifname; in nm_open()
637 while (*port) { in nm_open()
640 switch (*port) { in nm_open()
668 port++; in nm_open()
671 switch (*port) { in nm_open()
679 port++; in nm_open()
682 num = strtol(port, (char **)&port, 10); in nm_open()
693 switch (*port) { in nm_open()
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/tests/
H A DLightyTest.pm59 my $port = shift;
64 PeerPort => $port) or return 0;
88 my $port = shift;
92 while (0 == $self->listening_on($port)) {
372 my ($self, $binary, $port) = @_;
383 bind(SOCK, sockaddr_in($port, $iaddr)) || die "bind: $!";
388 if (0 != $self->wait_for_port_with_proc($port, $child)) {
389 diag(sprintf("\nThe process %i is not up (port %i, %s)", $child, $port, $binary));
H A D404-handler.conf8 server.port = 2048
H A Dmod-compress.conf9 server.port = 2048
H A Dvar-include.conf8 server.port = 2048
H A Dlowercase.conf4 server.port = 2048
H A Dcondition.conf8 server.port = 2048
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/outdated/
H A Dproxy.txt58 "port" => <integer> ),
60 "port" => <integer> )
68 :"port": is tcp-port on the "host" used by the proxy
76 "port" => 81
86 listen on port 80 for requests. ::
H A Dfastcgi.txt97 "port" => <integer> ,
99 # or host+port
122 :"port": is tcp-port on the "host" used by the FastCGI
168 "port" => 1026,
173 "port" => 1026
181 "port" => 9000,
204 "port" => 9000,
221 (( "host" => "10.0.0.2", "port" => 1030 ),
222 ( "host" => "10.0.0.3", "port" => 1030 ))
247 - IP, port, unix-socket (is empty here)
[all …]
H A Dconfiguration.txt48 # TCP port
49 server.port = 80
109 match on socket. Value must be on the format "ip:port" where ip is an IP
110 address and port a port number. Only equal match (==) is supported.
111 It also binds the daemon to this socket. Use this if you want to do IP/port-
274 server.port
275 tcp-port to bind the server to
277 .. note:: port belows 1024 require root-permissions
H A Devhost.txt36 %_ => the complete hostname (without port info)
/mOS-networking-stack/samples/simple_firewall/
H A Dsimple_firewall.c134 int port; in ExtractPort() local
158 port = atoi(buf); in ExtractPort()
159 if (port < 0 || port > 65536) in ExtractPort()
160 EXIT_WITH_ERROR("Invalid port [%d]\n", port); in ExtractPort()
161 (*p) = htons(port); in ExtractPort()
301 MatchPort(in_port_t port, in_port_t fw_port) in MatchPort() argument
304 return (fw_port == 0 || port == fw_port); in MatchPort()
/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_scgi.c150 unsigned short port; member
763 proc->port, in scgi_spawn_connection()
1130 proc->port = df->port + pno; in SETDEFAULTS_FUNC()
1166 fp->port = df->port; in SETDEFAULTS_FUNC()
2073 host->host, proc->port, in scgi_restart_dead_procs()
2179 host->port, in scgi_write_request()
2289 hctx->proc->port, in scgi_write_request()
2397 proc->port, in SUBREQUEST_FUNC()
2416 proc->port, in SUBREQUEST_FUNC()
2644 host->port, in scgi_handle_fdevent()
[all …]
H A Dmod_mysql_vhost.c45 unsigned short port; member
201 s->port = 0; /* default port for mysql */
214 cv[6].destination = &(s->port);
265 FOO(mydb), s->port, FOO(mysock), CLIENT_MULTI_STATEMENTS)) {
268 FOO(mydb), s->port, FOO(mysock), 0)) {
H A Dnetwork.c141 unsigned int port = 0; local
204 port = strtol(sp, NULL, 10);
209 } else if (port == 0 || port > 65535) {
210 log_error_write(srv, __FILE__, __LINE__, "sd", "port out of range:", port);
322 srv_socket->addr.ipv6.sin6_port = htons(port);
352 srv_socket->addr.ipv4.sin_port = htons(port);
422 host, port, strerror(errno));
883 buffer_append_long(b, srv->srvconf.port);
H A Dmod_proxy.c293 df->port = 80; in SETDEFAULTS_FUNC()
298 pcv[1].destination = &(df->port); in SETDEFAULTS_FUNC()
378 proxy_addr_in6.sin6_port = htons(host->port); in proxy_establish_connection()
387 proxy_addr_in.sin_port = htons(host->port); in proxy_establish_connection()
758 (!host->host->used || !host->port)) return -1; in proxy_write_request()
921 host->port, in SUBREQUEST_FUNC()
1021 "port:", hctx->host->port); in proxy_handle_fdevent()
1067 hctx->host->port, in proxy_handle_fdevent()
1319 host->host, host->port); in mod_proxy_check_extension()
1374 host->host, host->port); in TRIGGER_FUNC()
H A Dhttp-header-glue.c196 if (!((con->conf.is_ssl == 0 && srv->srvconf.port == 80) || in http_response_redirect_to_directory()
197 (con->conf.is_ssl == 1 && srv->srvconf.port == 443))) { in http_response_redirect_to_directory()
199 buffer_append_long(o, srv->srvconf.port); in http_response_redirect_to_directory()
H A Dmod_fastcgi.c74 unsigned port; /* config.port + pno */ member
159 unsigned short port; member
1297 fcv[6].destination = &(host->port); in SETDEFAULTS_FUNC()
1349 } else if (host->port == 0) { in SETDEFAULTS_FUNC()
1368 "\n\tport:", host->port, in SETDEFAULTS_FUNC()
1381 proc->port = host->port + pno; in SETDEFAULTS_FUNC()
1391 "\n\tport:", host->port, in SETDEFAULTS_FUNC()
1419 proc->port = host->port; in SETDEFAULTS_FUNC()
2741 host->host, host->port, in fcgi_restart_dead_procs()
2762 host->host, host->port, in fcgi_restart_dead_procs()
[all …]
/mOS-networking-stack/util/include/
H A Dnetlib.h32 int CreateServerSocket(int port, int isNonBlocking);
33 int CreateConnectionSocket(in_addr_t addr, int port, int isNonBlocking);
/mOS-networking-stack/core/src/bpf/
H A Dsf_nametoaddr.c165 int pcap_nametoport(const char *name, int *port, int *proto) in pcap_nametoport() argument
185 *port = tcp_port; in pcap_nametoport()
202 *port = udp_port; in pcap_nametoport()
210 *port = 2049; in pcap_nametoport()
H A Dsf_gencode.c4924 struct block *gen_portop(port, proto, dir) in gen_portop() argument
4925 int port, proto, dir; in gen_portop()
4965 static struct block *gen_port(port, ip_proto, dir) in gen_port() argument
4966 int port; in gen_port()
4996 b1 = gen_portop(port, ip_proto, dir);
5015 struct block *gen_portop6(port, proto, dir) in gen_portop6() argument
5016 int port, proto, dir; in gen_portop6()
5055 int port; in gen_port6()
5069 b1 = gen_portop6(port, ip_proto, dir);
5914 int port, real_proto; local
[all …]
/mOS-networking-stack/util/
H A Dnetlib.c54 CreateServerSocket(int port, int isNonBlocking) in CreateServerSocket() argument
95 addr.sin_port = htons(port); in CreateServerSocket()
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/config/
H A Dlighttpd.orig.conf88 server.port = 80
H A Dlighttpd.conf88 server.port = 80

123