| /src/usr.bin/rsh/ |
| getport.c | 47 long port; local 57 port = strtol(service, &ep, 0); 60 (port == LONG_MAX || port == LONG_MIN)) || 61 (port <= 0 || port >= IPPORT_ANONMAX)) 62 errx(1,"port must be between 1 and %d", 64 sp->s_port = htons((uint16_t)port);
|
| /src/libexec/identd/ |
| npf.c | 57 in_port_t port[2]; local 67 port[0] = csatosin(&ss[0])->sin_port; 68 port[1] = csatosin(&ss[1])->sin_port; 73 port[0] = csatosin6(&ss[0])->sin6_port; 74 port[1] = csatosin6(&ss[1])->sin6_port; 87 if (npf_nat_lookup(dev, af, addr, port, IPPROTO_TCP, PFIL_OUT) == -1) { 96 * in the rest, family, port (ident), len.... 110 /* Put the originating port into nat_lport. */ 111 *nat_lport = ntohs(port[0]);
|
| /src/sys/net/agr/ |
| ieee8023ad_marker.c | 60 struct agr_port *port; local 63 port = ifp->if_lagg; /* XXX race with agr_remport. */ 64 KASSERT(port); 65 if (__predict_false(port->port_flags & AGRPORT_DETACHING)) { 106 &port->port_origlladdr, ETHER_ADDR_LEN);
|
| /src/crypto/external/bsd/netpgp/dist/src/hkpclient/ |
| main.c | 42 int port; local 45 port = 11371; 57 port = atoi(optarg); 64 if (hkpc_get(&res, server, port, family, argv[optind], argv[i]) >= 0) {
|
| /src/external/gpl3/gdb.old/dist/gdb/guile/lib/gdb/ |
| experimental.scm | 28 (define-public with-gdb-output-to-port (@@ (gdb) %with-gdb-output-to-port)) 29 (define-public with-gdb-error-to-port (@@ (gdb) %with-gdb-error-to-port)) 34 (lambda (p) (with-gdb-output-to-port p thunk))))
|
| init.scm | 23 (define %orig-input-port #f) 24 (define %orig-output-port #f) 25 (define %orig-error-port #f) 38 (define (%exception-printer port key args default-printer) 42 (format port "In procedure ~a: " subr)) 43 (apply format port msg (or args '()))) 52 (define (%with-stack-exception-printer port key args default-printer) 55 (%exception-printer port real-key real-args default-printer))) 60 (define (%print-exception-message-worker port key args) 62 (format port "Throw to key `~a' with args `~s'." key args) [all...] |
| /src/external/gpl3/gdb/dist/gdb/guile/lib/gdb/ |
| experimental.scm | 28 (define-public with-gdb-output-to-port (@@ (gdb) %with-gdb-output-to-port)) 29 (define-public with-gdb-error-to-port (@@ (gdb) %with-gdb-error-to-port)) 34 (lambda (p) (with-gdb-output-to-port p thunk))))
|
| init.scm | 23 (define %orig-input-port #f) 24 (define %orig-output-port #f) 25 (define %orig-error-port #f) 38 (define (%exception-printer port key args default-printer) 42 (format port "In procedure ~a: " subr)) 43 (apply format port msg (or args '()))) 52 (define (%with-stack-exception-printer port key args default-printer) 55 (%exception-printer port real-key real-args default-printer))) 60 (define (%print-exception-message-worker port key args) 62 (format port "Throw to key `~a' with args `~s'." key args) [all...] |
| /src/lib/libc/rpc/ |
| pmap_getport.c | 73 * Find the mapped port for program,version. 79 remote_pmap_getport(CLIENT *client, struct pmap *parms, u_short *port) 82 parms, (xdrproc_t)xdr_u_short, port, tottimeout) != RPC_SUCCESS) { 85 } else if (*port == 0) { 107 u_short port = 0; local 122 remote_pmap_getport(client, &parms, &port); 124 if (port == 0) { 127 remote_pmap_getport(client, &parms, &port); 131 return port;
|
| /src/tests/lib/libc/net/ |
| h_servent.c | 42 printf("name=%s, port=%d, proto=%s, aliases=", 53 "\t%s -p <port> [-P <proto>]\n" 63 const char *port = NULL, *proto = NULL, *name = NULL; local 72 port = optarg; 82 if (port && name) 84 if (port) { 85 if ((svp = getservbyport(htons(atoi(port)), proto)) != NULL)
|
| /src/tests/net/inpcb/ |
| broadcast_bind.c | 35 test_bind(char *paddr, struct in_addr *addr, u_int16_t port, int type, 44 sin.sin_port = htons(port); 60 warn("bind(%s,%d) (type %d) expected %d, got %d", paddr, port, type, 72 int port = 30000; local 102 rc |= test_bind(argv[1], &uc_addr, port, SOCK_STREAM, 0); 103 rc |= test_bind(argv[2], &err_addr, port, SOCK_STREAM, EADDRNOTAVAIL); 105 rc |= test_bind(argv[3], &bc_addr, port, SOCK_STREAM, 0); 107 rc |= test_bind(argv[3], &bc_addr, port, SOCK_STREAM, EADDRNOTAVAIL); 110 rc |= test_bind(argv[2], &err_addr, port, SOCK_STREAM, EADDRNOTAVAIL); 111 rc |= test_bind(argv[3], &bc_addr, port, SOCK_DGRAM, 0) [all...] |
| /src/crypto/external/apache2/openssl/dist/demos/bio/ |
| server-cmod.c | 25 char *port = "*:4433"; local 47 if ((in = BIO_new_accept(port)) == NULL)
|
| /src/crypto/external/bsd/openssl/dist/demos/bio/ |
| server-cmod.c | 25 char *port = "*:4433"; local 46 if ((in = BIO_new_accept(port)) == NULL)
|
| /src/crypto/external/bsd/openssl.old/dist/demos/bio/ |
| server-cmod.c | 25 char *port = "*:4433"; local 46 if ((in = BIO_new_accept(port)) == NULL)
|
| /src/external/apache2/mDNSResponder/dist/mDNSShared/utilities/ |
| mdns_addr_tailq.h | 39 mDNSIPPort port; // The port number that is associated with the address above. member in struct:mdns_addr_with_port 51 * Creates a tail queue that contains IP address and port number. 88 * Adds an IP address with its corresponding port number into the front of the tail queue. 91 * The tail queue where the address and port number to be added into. 96 * @param port 97 * The corresponding port number of the added address to be added. 100 * The added address with its port number in the front of the tail queue, or NULL if the system was out of memory. 103 mdns_addr_tailq_add_front(mdns_addr_tailq_t * NONNULL me, const mDNSAddr * NONNULL address, mDNSIPPort port); 107 * Adds an IP address with its corresponding port number into the back of the tail queue [all...] |
| /src/external/bsd/libpcap/dist/rpcapd/ |
| config_params.h | 47 char port[MAX_LINE + 1]; // keeps the network port to bind to member in struct:active_pars 52 extern struct active_pars activelist[MAX_ACTIVE_LIST]; //!< Keeps the list of the hosts (host, port) on which I want to connect to (active mode)
|
| /src/external/mit/libuv/dist/test/ |
| test-getnameinfo.c | 31 static const int port = 80; variable 56 r = uv_ip4_addr(address_ip4, port, &addr4); 79 ASSERT_OK(uv_ip4_addr(address_ip4, port, &addr4)); 102 r = uv_ip6_addr(address_ip6, port, &addr6);
|
| /src/external/mpl/bind/dist/lib/dns/rdata/generic/ |
| dsync_66.h | 24 uint16_t port; member in struct:dns_rdata_dsync
|
| /src/external/mpl/bind/dist/lib/dns/rdata/in_1/ |
| srv_33.h | 26 uint16_t port; member in struct:dns_rdata_in_srv
|
| /src/external/mpl/bind/dist/tests/ns/ |
| listenlist_test.c | 42 in_port_t port = 5300 + isc_random8(); local 49 result = ns_listenlist_default(mctx, port, false, AF_INET, &list); 76 result = ns_listenlist_default(mctx, port, true, AF_INET, &list);
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/rdata/in_1/ |
| srv_33.h | 27 uint16_t port; member in struct:dns_rdata_in_srv
|
| /src/lib/libc/compat/net/ |
| compat_ns_ntoa.c | 55 uint16_t port = htons(addr.x_port); local 68 if (port) { 80 if (port) { 81 sprintf(cp, ".%x", port);
|
| /src/lib/libcompat/4.3/ |
| rexec.c | 69 u_short port; local 112 port = 0; 135 port = ntohs((u_short)sin2.sin_port); 136 (void)snprintf(num, sizeof(num), "%u", port); 144 port = 0; 167 if (port)
|
| /src/sbin/mount_portal/ |
| pt_tcp.c | 59 * Key will be tcp/host/port[/"priv"] 61 * requested host and port. 69 char port[MAXHOSTNAMELEN]; local 88 if (strlcpy(port, p, sizeof(port)) >= sizeof(port)) 106 if (getaddrinfo(host, port, &hints, &res) != 0)
|
| /src/sys/arch/alpha/jensenio/ |
| jensenio_bus_intio.c | 218 register uint32_t *port; local 222 port = (uint32_t *)(ioh + (off << 9)); 223 return (*port & 0xff); 242 register uint32_t *port; local 244 port = (uint32_t *)(ioh + (off << 9)); 245 *port = val;
|