/freebsd/tools/regression/sockets/accept_fd_leak/ |
H A D | accept_fd_leak.c | 68 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 D | remote.h | 53 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 D | daemon.h | 50 struct listen_port; 89 struct listen_port** ports; 97 struct listen_port* rc_ports;
|
H A D | worker.h | 59 struct listen_port; 159 struct listen_port* ports, int do_sigs);
|
H A D | daemon.c | 327 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 D | remote.c | 245 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 D | worker.c | 2099 struct listen_port* ports, int do_sigs) in worker_init()
|
/freebsd/contrib/unbound/services/ |
H A D | listen_dnsport.h | 134 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 D | listen_dnsport.c | 1150 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 D | mux.c | 540 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 D | channels.c | 117 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 D | readconf.c | 394 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 D | ssh.c | 951 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 D | serverloop.c | 756 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 D | misc.h | 33 int listen_port; /* Port to forward. */ member
|
H A D | clientloop.c | 1693 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 D | misc.c | 2014 if (a->listen_port != b->listen_port) in forward_equals()
|
/freebsd/contrib/wireguard-tools/ |
H A D | showconf.c | 41 if (device->listen_port) in showconf_main() 42 printf("ListenPort = %u\n", device->listen_port); in showconf_main()
|
H A D | show.c | 219 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 D | ipc-uapi.h | 49 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 D | containers.h | 87 uint16_t listen_port; member
|
H A D | ipc-freebsd.h | 90 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 D | config.c | 446 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 D | ftp-proxy.c | 124 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 D | irdma_cm.c | 1530 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()
|