/src/usr.bin/rsh/ |
getport.c | 47 long port; local in function:getport 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);
|
getport.c | 47 long port; local in function:getport 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 in function:npf_natlookup 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]);
|
npf.c | 57 in_port_t port[2]; local in function:npf_natlookup 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 in function:ieee8023ad_marker_input 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);
|
ieee8023ad_marker.c | 60 struct agr_port *port; local in function:ieee8023ad_marker_input 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/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 in function:pmap_getport 122 remote_pmap_getport(client, &parms, &port); 124 if (port == 0) { 127 remote_pmap_getport(client, &parms, &port); 131 return port;
|
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 in function:pmap_getport 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 in function:main 72 port = optarg; 82 if (port && name) 84 if (port) { 85 if ((svp = getservbyport(htons(atoi(port)), proto)) != NULL)
|
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 in function:main 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 in function:main 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...] |
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 in function:main 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/lib/libc/compat/net/ |
compat_ns_ntoa.c | 54 uint16_t port = htons(addr.x_port); local in function:ns_ntoa 67 if (port) { 79 if (port) { 80 sprintf(cp, ".%x", port);
|
compat_ns_ntoa.c | 54 uint16_t port = htons(addr.x_port); local in function:ns_ntoa 67 if (port) { 79 if (port) { 80 sprintf(cp, ".%x", port);
|
/src/lib/libcompat/4.3/ |
rexec.c | 69 u_short port; local in function:rexec 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)
|
rexec.c | 69 u_short port; local in function:rexec 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 in function:portal_tcp 88 if (strlcpy(port, p, sizeof(port)) >= sizeof(port)) 106 if (getaddrinfo(host, port, &hints, &res) != 0)
|
pt_tcp.c | 59 * Key will be tcp/host/port[/"priv"] 61 * requested host and port. 69 char port[MAXHOSTNAMELEN]; local in function:portal_tcp 88 if (strlcpy(port, p, sizeof(port)) >= sizeof(port)) 106 if (getaddrinfo(host, port, &hints, &res) != 0)
|
/src/sys/arch/xen/include/ |
xenio3.h | 37 * Bind a fresh port to VIRQ @virq. 38 * Return allocated port. 44 unsigned int port; member in struct:ioctl_evtchn_bind_virq 48 * Bind a fresh port to remote <@remote_domain, @remote_port>. 49 * Return allocated port. 55 unsigned int port; member in struct:ioctl_evtchn_bind_interdomain 59 * Allocate a fresh port for binding to @remote_domain. 60 * Return allocated port. 66 unsigned int port; member in struct:ioctl_evtchn_bind_unbound_port 70 * Unbind previously allocated @port 75 unsigned int port; member in struct:ioctl_evtchn_unbind 84 unsigned int port; member in struct:ioctl_evtchn_notify [all...] |
/src/sys/external/bsd/drm2/dist/include/drm/ |
intel_lpe_audio.h | 44 int port; member in struct:intel_hdmi_lpe_audio_port_pdata 51 struct intel_hdmi_lpe_audio_port_pdata port[3]; /* for ports B,C,D */ member in struct:intel_hdmi_lpe_audio_pdata 55 void (*notify_audio_lpe)(struct platform_device *pdev, int port); /* port: 0==B,1==C,2==D */
|
/src/tests/net/ipsec/ |
natt_terminator.c | 49 fprintf(stderr, "Usage: %s [-46] <addr> <port>\n", prog); 58 const char *addr, *port; local in function:main 84 port = argv[1]; 92 e = getaddrinfo(addr, port, &hints, &res);
|
/src/usr.sbin/ypset/ |
ypset.c | 115 int sock, port; local in function:bind_tohost 118 port = htons(getrpcport(server, YPPROG, YPPROC_NULL, IPPROTO_UDP)); 119 if (port == 0) 127 ypsd.ypsetdom_port = port;
|
/src/sys/arch/hp300/stand/common/ |
dcm.c | 92 int port = DCMCONUNIT; local in function:dcminit 95 while (dcm->dcm_thead[port].ptr != dcm->dcm_ttail[port].ptr) 97 dcm->dcm_data[port].dcm_baud = BR_9600; 98 dcm->dcm_data[port].dcm_conf = LC_8BITS | LC_1STOP; 100 dcm->dcm_cmdtab[port].dcm_data |= CT_CON; 101 dcm->dcm_cr |= (1 << port); 114 int c, port; local in function:dcmgetchar 116 port = DCMCONUNIT; 117 pp = dcm_preg(dcm, port); 146 int port; local in function:dcmputchar [all...] |
/src/sys/arch/alpha/jensenio/ |
jensenio_bus_intio.c | 218 register uint32_t *port; local in function:jensenio_intio_read_1 222 port = (uint32_t *)(ioh + (off << 9)); 223 return (*port & 0xff); 242 register uint32_t *port; local in function:jensenio_intio_write_1 244 port = (uint32_t *)(ioh + (off << 9)); 245 *port = val;
|
/src/sys/arch/arm/sunxi/ |
sunxi_gpio.h | 41 uint8_t port; member in struct:sunxi_gpio_pins
|