Home
last modified time | relevance | path

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

/freebsd/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c68 int fd1, fd2, fd3, i, listen_port, s, status; in main() local
93 listen_port = MAX((int)random() % 65535, 1025); in main()
94 sin.sin_port = htons(listen_port); in main()
97 warn("bind with %d failed", listen_port); in main()
160 sin.sin_port = htons(listen_port); in main()
/freebsd/contrib/unbound/daemon/
H A Dremote.h53 struct listen_port;
147 struct listen_port* daemon_remote_open_ports(struct config_file* cfg);
157 struct listen_port* ports, struct worker* worker);
H A Ddaemon.h50 struct listen_port;
89 struct listen_port** ports;
97 struct listen_port* rc_ports;
H A Dworker.h59 struct listen_port;
159 struct listen_port* ports, int do_sigs);
H A Ddaemon.c327 struct listen_port* port_list) in setup_acl_for_ports()
355 struct listen_port* p0; in daemon_open_shared_ports()
390 if(!(daemon->ports = (struct listen_port**)calloc( in daemon_open_shared_ports()
H A Dremote.c245 add_open(const char* ip, int nr, struct listen_port** list, int noproto_is_err, in add_open()
250 struct listen_port* n; in add_open()
322 n = (struct listen_port*)calloc(1, sizeof(*n)); in add_open()
334 struct listen_port* daemon_remote_open_ports(struct config_file* cfg) in daemon_remote_open_ports()
336 struct listen_port* l = NULL; in daemon_remote_open_ports()
391 struct listen_port* ports, struct worker* worker) in daemon_remote_open_accept()
393 struct listen_port* p; in daemon_remote_open_accept()
H A Dworker.c2099 struct listen_port* ports, int do_sigs) in worker_init()
/freebsd/contrib/unbound/services/
H A Dlisten_dnsport.h134 struct listen_port { struct
136 struct listen_port* next; argument
161 struct listen_port* listening_ports_open(struct config_file* cfg, argument
167 void listening_ports_free(struct listen_port* list);
210 listen_create(struct comm_base* base, struct listen_port* ports,
H A Dlisten_dnsport.c1150 port_insert(struct listen_port** list, int s, enum listen_type ftype, in port_insert()
1153 struct listen_port* item = (struct listen_port*)malloc( in port_insert()
1154 sizeof(struct listen_port)); in port_insert()
1294 struct addrinfo *hints, const char* port, struct listen_port** list, in ports_create_if()
1522 listen_create(struct comm_base* base, struct listen_port* ports, in listen_create()
1882 struct listen_port*
1886 struct listen_port* list = NULL; in listening_ports_open()
2058 void listening_ports_free(struct listen_port* list) in listening_ports_free()
2060 struct listen_port* nx; in listening_ports_free()
/freebsd/crypto/openssh/
H A Dmux.c540 fwd->listen_host, fwd->listen_port, in format_forward()
548 fwd->listen_host, fwd->listen_port); in format_forward()
555 fwd->listen_port, in format_forward()
582 if (a->listen_port != b->listen_port) in compare_forward()
621 rfwd->listen_port, rfwd->connect_path ? rfwd->connect_path : in mux_confirm_remote_forward()
624 if (rfwd->listen_port == 0) { in mux_confirm_remote_forward()
649 if (rfwd->listen_port == 0) in mux_confirm_remote_forward()
656 "listen port %d", rfwd->listen_port); in mux_confirm_remote_forward()
659 "connect %s:%d", rfwd->listen_port, in mux_confirm_remote_forward()
717 fwd.listen_port = lport; in mux_master_process_open_fwd()
[all …]
H A Dchannels.c117 int listen_port; /* Remote side should listen port. */ member
677 const char *listen_host, const char *listen_path, int listen_port, in permission_set_add() argument
695 (*permp)[n].listen_port = listen_port; in permission_set_add()
717 c->self, perm->listen_host, perm->listen_port); in mux_remove_remote_forwardings()
724 (r = sshpkt_put_u32(ssh, perm->listen_port)) != 0 || in mux_remove_remote_forwardings()
3145 u_int id, remote_id, listen_port; in channel_proxy_downstream() local
3233 (r = sshbuf_get_u32(original, &listen_port)) != 0) { in channel_proxy_downstream()
3237 if (listen_port > 65535) { in channel_proxy_downstream()
3239 listen_host, listen_port); in channel_proxy_downstream()
3244 -1, listen_host, NULL, (int)listen_port, downstream); in channel_proxy_downstream()
[all …]
H A Dreadconf.c394 fwd->listen_port = newfwd->listen_port; in add_local_forward()
423 fwd->listen_port = newfwd->listen_port; in add_remote_forward()
3196 fwd->listen_port = PORT_STREAMLOCAL; in parse_forward()
3199 fwd->listen_port = a2port(fwdargs[0].arg); in parse_forward()
3207 fwd->listen_port = PORT_STREAMLOCAL; in parse_forward()
3212 fwd->listen_port = a2port(fwdargs[0].arg); in parse_forward()
3217 fwd->listen_port = a2port(fwdargs[1].arg); in parse_forward()
3225 fwd->listen_port = PORT_STREAMLOCAL; in parse_forward()
3230 fwd->listen_port = a2port(fwdargs[1].arg); in parse_forward()
3235 fwd->listen_port = a2port(fwdargs[0].arg); in parse_forward()
[all …]
H A Dssh.c951 fwd.listen_port == PORT_STREAMLOCAL ? in main()
953 options.stdio_forward_port = fwd.listen_port; in main()
1908 rfwd->listen_port, rfwd->connect_path ? rfwd->connect_path : in ssh_confirm_remote_forward()
1910 if (rfwd->listen_path == NULL && rfwd->listen_port == 0) { in ssh_confirm_remote_forward()
1944 "for listen port %d", rfwd->listen_port); in ssh_confirm_remote_forward()
1951 "for listen port %d", rfwd->listen_port); in ssh_confirm_remote_forward()
2064 options.local_forwards[i].listen_port, in ssh_init_forwarding()
2085 options.remote_forwards[i].listen_port, in ssh_init_forwarding()
H A Dserverloop.c756 fwd.listen_port = (int)port; in server_input_global_request()
762 (!want_reply && fwd.listen_port == 0)) { in server_input_global_request()
783 fwd.listen_port = (int)port; in server_input_global_request()
H A Dmisc.h33 int listen_port; /* Port to forward. */ member
H A Dclientloop.c1693 u_int listen_port, originator_port; in client_request_forwarded_tcpip() local
1698 (r = sshpkt_get_u32(ssh, &listen_port)) != 0 || in client_request_forwarded_tcpip()
1705 listen_address, listen_port, originator_address, originator_port); in client_request_forwarded_tcpip()
1707 if (listen_port > 0xffff) in client_request_forwarded_tcpip()
1713 listen_address, listen_port, "forwarded-tcpip", in client_request_forwarded_tcpip()
1730 (r = sshbuf_put_u32(b, listen_port)) != 0 || in client_request_forwarded_tcpip()
H A Dmisc.c2014 if (a->listen_port != b->listen_port) in forward_equals()
/freebsd/contrib/wireguard-tools/
H A Dshowconf.c41 if (device->listen_port) in showconf_main()
42 printf("ListenPort = %u\n", device->listen_port); in showconf_main()
H A Dshow.c219 if (device->listen_port) in pretty_print()
220 terminal_printf(" " TERMINAL_BOLD "listening port" TERMINAL_RESET ": %u\n", device->listen_port); in pretty_print()
262 printf("%u\t", device->listen_port); in dump_print()
306 printf("%u\n", device->listen_port); in ugly_print()
H A Dipc-uapi.h49 fprintf(f, "listen_port=%u\n", dev->listen_port); in userspace_set_device()
181 dev->listen_port = NUM(0xffffU); in userspace_get_device()
H A Dcontainers.h87 uint16_t listen_port; member
H A Dipc-freebsd.h90 dev->listen_port = number; in kernel_get_device()
274 nvlist_add_number(nvl_device, "listen-port", dev->listen_port); in kernel_set_device()
H A Dconfig.c446 ret = parse_port(&ctx->device->listen_port, &ctx->device->flags, value); in process_line()
576 if (!parse_port(&device->listen_port, &device->flags, argv[1])) in config_read_cmd()
/freebsd/contrib/pf/ftp-proxy/
H A Dftp-proxy.c124 const char *fixed_server, *fixed_server_port, *fixed_proxy, *listen_ip, *listen_port, variable
613 listen_port = "8021"; in main()
658 listen_port = optarg; in main()
738 error = getaddrinfo(listen_ip, listen_port, &hints, &res); in main()
785 logmsg(LOG_NOTICE, "listening on %s port %s", listen_ip, listen_port); in main()
/freebsd/sys/dev/irdma/
H A Dirdma_cm.c1530 u16 listen_port; in irdma_find_listener() local
1537 listen_port = listen_node->loc_port; in irdma_find_listener()
1538 if (listen_node->ipv4 != ipv4 || listen_port != dst_port || in irdma_find_listener()