Home
last modified time | relevance | path

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

12

/busybox-1.35.0/networking/
Dpscan.c40 static const char *port_name(unsigned port) in port_name() argument
44 server = getservbyport(htons(port), NULL); in port_name()
69 unsigned port, max_port, nports; in pscan_main() local
85 port = xatou_range(opt_min_port, 1, max_port); in pscan_main()
86 nports = max_port - port + 1; in pscan_main()
94 lsap = xhost2sockaddr(*argv, port); in pscan_main()
96 *argv, port, max_port); in pscan_main()
98 for (; port <= max_port; port++) { in pscan_main()
102 set_nport(&lsap->u.sa, htons(port)); in pscan_main()
108 DMSG("connect to port %u", port); in pscan_main()
[all …]
Dparse_pasv_epsv.c34 int port; in parse_pasv_epsv() local
48 port = xatou_range(ptr + 1, 0, 255); in parse_pasv_epsv()
53 port += xatou_range(ptr + 1, 0, 255) * 256; in parse_pasv_epsv()
64 port = xatou_range(ptr + 1, 0, 65535); in parse_pasv_epsv()
67 return port; in parse_pasv_epsv()
Dwhois.c35 static char *query(const char *host, int port, const char *domain) in query() argument
50 printf("[Querying %s:%d '%s%s']\n", host, port, pfx, domain); in query()
51 fd = create_and_connect_stream_or_die(host, port); in query()
115 static void recursive_query(const char *host, int port, const char *domain) in recursive_query() argument
120 redir = query(host, port, domain); in recursive_query()
125 port = 43; in recursive_query()
174 int port = 43; in whois_main() local
177 getopt32(argv, "^" "ih:p:+" "\0" "-1", &host, &port); in whois_main()
181 recursive_query(host, port, *argv); in whois_main()
Dftpd.c487 unsigned port; in bind_for_passive_mode() local
499 port = get_nport(&G.local_addr->u.sa); in bind_for_passive_mode()
500 port = ntohs(port); in bind_for_passive_mode()
501 return port; in bind_for_passive_mode()
508 unsigned port; in handle_pasv() local
511 port = bind_for_passive_mode(); in handle_pasv()
520 addr, (int)(port >> 8), (int)(port & 255)); in handle_pasv()
530 unsigned port; in handle_epsv() local
533 port = bind_for_passive_mode(); in handle_epsv()
534 response = xasprintf(STR(FTP_EPSVOK)" EPSV ok (|||%u|)\r\n", port); in handle_epsv()
[all …]
Dwget.c195 int port; member
549 h->port = bb_lookup_std_port(P_FTP, "tcp", 21); in parse_url()
555 h->port = bb_lookup_std_port(P_FTPS, "tcp", 990); in parse_url()
561 h->port = bb_lookup_std_port(P_HTTPS, "tcp", 443); in parse_url()
575 h->port = bb_lookup_std_port(P_HTTP, "tcp", 80); in parse_url()
678 static int spawn_https_helper_openssl(const char *host, unsigned port) in spawn_https_helper_openssl() argument
691 host = allocated = xasprintf("%s:%u", host, port); in spawn_https_helper_openssl()
830 int port; in prepare_ftp_session() local
881 port = parse_pasv_epsv(G.wget_buf); in prepare_ftp_session()
882 if (port < 0) in prepare_ftp_session()
[all …]
Dtraceroute.c405 uint16_t port; /* start udp dest port # for probe packets */ member
429 #define port (G.port ) macro
578 set_nport(&dest_lsa->u.sa, htons(port + seq)); in send_probe()
721 && up->dest == htons(port + seq) in packet4_ok()
724 && up->uh_dport == htons(port + seq) in packet4_ok()
896 port = 33434; in traceroute_init()
913 port = xatou16(port_str); in traceroute_init()
931 port = 0; /* on ICMP6 sockets, sendto(ipv6.nonzero_port) throws EINVAL! */ in traceroute_init()
939 dest_lsa = xhost_and_af2sockaddr(argv[0], port, af); in traceroute_init()
954 dest_lsa = xhost_and_af2sockaddr(argv[0], port, AF_INET); in traceroute_init()
[all …]
Dftpgetput.c293 const char *port = NULL; in ftpgetput_main() local
323 &user, &password, &port, &verbose_flag, &do_continue in ftpgetput_main()
330 lsa = xhost2sockaddr(argv[0], bb_lookup_port(port, "tcp", 21)); in ftpgetput_main()
Dnbd-client.c64 const char *host, *port, *device; in nbdclient_main() local
155 port = argv[2] ? argv[1] : "10809"; in nbdclient_main()
174 sock = create_and_connect_stream_or_die(host, xatou16(port)); in nbdclient_main()
Dnetstat.c379 static const char *get_sname(int port, const char *proto, int numeric) in get_sname() argument
381 if (!port) in get_sname()
384 struct servent *se = getservbyport(port, proto); in get_sname()
389 return itoa(ntohs(port)); in get_sname()
392 static char *ip_port_str(struct sockaddr *addr, int port, const char *proto, int numeric) in ip_port_str() argument
405 host_port = xasprintf("%s:%s", host, get_sname(htons(port), proto, numeric)); in ip_port_str()
Ddnsd.c518 uint16_t port = 53; in dnsd_main() local
530 port = xatou_range(sport, 1, 0xffff); in dnsd_main()
539 lsa = xdotted2sockaddr(listen_interface, port); in dnsd_main()
Dtelnet.c624 int port; in telnet_main() local
652 port = *argv ? bb_lookup_port(*argv++, "tcp", 23) in telnet_main()
657 xmove_fd(create_and_connect_stream_or_die(host, port), netfd); in telnet_main()
Dnc_bloaty.c390 int sv_port, port, r; in dolisten() local
393 port = get_nport(&themaddr->u.sa); in dolisten()
394 if (port == 0) { in dolisten()
/busybox-1.35.0/libbb/
Dxconnect.c121 unsigned FAST_FUNC bb_lookup_port(const char *port, const char *protocol, unsigned port_nr) in bb_lookup_port() argument
123 if (port) { in bb_lookup_port()
124 port_nr = bb_strtou(port, NULL, 10); in bb_lookup_port()
126 struct servent *tserv = getservbyname(port, protocol); in bb_lookup_port()
128 bb_error_msg_and_die("bad port '%s'", port); in bb_lookup_port()
153 void FAST_FUNC set_nport(struct sockaddr *sa, unsigned port) in set_nport() argument
158 sin6->sin6_port = port; in set_nport()
164 sin->sin_port = port; in set_nport()
177 const char *host, int port,
232 port = bb_strtou(cp, NULL, 10);
[all …]
/busybox-1.35.0/networking/udhcp/
Ddhcpc.h12 IF_FEATURE_UDHCP_PORT(uint16_t port;)
35 #define CLIENT_PORT (client_data.port)
36 #define CLIENT_PORT6 (client_data.port)
Ddhcpd.h31 uint16_t port; member
60 #define SERVER_PORT (server_data.port)
61 #define SERVER_PORT6 (server_data.port)
Dsocket.c79 int FAST_FUNC udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf) in udhcp_listen_socket() argument
85 log2("opening listen socket on *:%d %s", port, inf); in udhcp_listen_socket()
105 addr.sin_port = htons(port); in udhcp_listen_socket()
Dd6_socket.c108 int FAST_FUNC d6_listen_socket(int port, const char *inf) in d6_listen_socket() argument
113 log1("opening listen socket on *:%d %s", port, inf); in d6_listen_socket()
126 addr.sin6_port = htons(port); in d6_listen_socket()
Dd6_common.h155 int FAST_FUNC d6_listen_socket(int port, const char *inf);
/busybox-1.35.0/examples/
Dmdev.conf25 port 0:9 640
/busybox-1.35.0/procps/
Dfuser.c106 static smallint scan_proc_net_or_maps(const char *path, unsigned port) in scan_proc_net_or_maps() argument
156 if (tmp_port == port) in scan_proc_net_or_maps()
308 unsigned port; in fuser_main() local
312 if (sscanf(*pp, "%u/%4s", &port, path + sizeof("/proc/net/")-1) == 2 in fuser_main()
316 scan_proc_net_or_maps(path, port); in fuser_main()
/busybox-1.35.0/miscutils/
Dsetserial.c191 unsigned int port; member
605 device, uart, serinfo.port, serinfo.irq); in serial_get()
611 device, serinfo.port, serinfo.irq, uart); in serial_get()
617 uart, serinfo.port, serinfo.irq, serinfo.baud_base); in serial_get()
622 device, serinfo.line, uart, serinfo.port, serinfo.irq); in serial_get()
706 serinfo.port = get_numeric(*arg); in serial_set()
/busybox-1.35.0/examples/bootfloppy/
Dmkdevs.sh21 mknod port c 1 4
/busybox-1.35.0/shell/
Dcttyhack.c84 unsigned int port; member
/busybox-1.35.0/util-linux/
Dmount.c1157 long unsigned port) in get_mountport() argument
1173 pm_mnt->pm_port = port; in get_mountport()
1186 || (port && pmap->pml_map.pm_port != port) in get_mountport()
1269 int port; in nfsmount() local
1371 port = 0; in nfsmount()
1462 port = val; in nfsmount()
1809 if (port == 0) { in nfsmount()
1811 port = pmap_getport(&server_addr, nfsprog, nfsvers, in nfsmount()
1813 if (port == 0) in nfsmount()
1814 port = NFS_PORT; in nfsmount()
[all …]
/busybox-1.35.0/include/
Dlibbb.h741 unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC;
782 int create_and_bind_stream_or_die(const char *bindaddr, int port) FAST_FUNC;
783 int create_and_bind_dgram_or_die(const char *bindaddr, int port) FAST_FUNC;
789 int create_and_connect_stream_or_die(const char *peer, int port) FAST_FUNC;
801 len_and_sockaddr* host2sockaddr(const char *host, int port) FAST_FUNC RETURNS_MALLOC;
803 len_and_sockaddr* xhost2sockaddr(const char *host, int port) FAST_FUNC RETURNS_MALLOC;
804 len_and_sockaddr* xdotted2sockaddr(const char *host, int port) FAST_FUNC RETURNS_MALLOC;
807 #define host_and_af2sockaddr(host, port, af) host2sockaddr((host), (port)) argument
808 #define xhost_and_af2sockaddr(host, port, af) xhost2sockaddr((host), (port)) argument
810 len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af) FAST_FUNC RETURN…
[all …]

12