/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | inet_mkaddr.c | 50 inet_makeaddr(ipaddr_t net, ipaddr_t host) argument 55 if (net < 128) 56 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 57 else if (net < 65536) 58 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); 59 else if (net < 16777216L) 60 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); 62 addr = net | host;
|
H A D | getnetent.c | 62 getnetbyaddr(in_addr_t net, int type) argument 68 res = getnetbyaddr_r(net, type, b->result,
|
H A D | getnetent_r.c | 79 getnetbyaddr_r(long net, int type, struct netent *result, argument 86 arg.key.netaddr.net = (uint32_t)net; 137 struct netent *net = (struct netent *)ent; local 165 net->n_name = buffer; 171 /* Syntax error -- no net number */ 176 p++; /* Find the end of the net number */ 185 net->n_net = inet_network(numbuf); 186 if (net->n_net == (in_addr_t)-1) { 191 net [all...] |
H A D | netmasks.c | 41 #include <net/if.h> 127 getnetmaskbynet(const struct in_addr net, struct in_addr *mask) argument 132 i = ntohl(net.s_addr); 187 struct in_addr prevnet, net; local 195 net.s_addr = htonl(i & maskoff); 197 if (net.s_addr != prevnet.s_addr) { 198 if (getnetmaskbykey(net, mask) != 0) { 205 prevnet.s_addr = net.s_addr;
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetnetmask.c | 46 struct in_addr net; local 48 net.s_addr = ntohl(key.s_addr); 49 if (fprintf(fp, "%-20s", inet_nettoa(net)) == EOF)
|
/illumos-gate/usr/src/cmd/gss/gssd/ |
H A D | gssd_generic.c | 64 void *net; local 69 if ((net = __rpc_setconf(nettype)) == 0) { 74 while (nconf = __rpc_getconf(net)) { 150 __rpc_endconf(net);
|
/illumos-gate/usr/src/lib/libsocket/socket/ |
H A D | _soutil.c | 125 struct netconfig *net; local 129 net = _s_match_netconf(family, type, protocol, &nethandle); 130 if (net == NULL) 133 if (strcmp(net->nc_proto, NC_NOPROTO) != 0) 139 if (stat(net->nc_device, &stats) < 0) { 160 *pathp = malloc(strlen(net->nc_device) + 1); 166 (void) strcpy(*pathp, net->nc_device); 178 struct netconfig *net; local 204 while ((net = getnetconfig(*nethandle)) != NULL) { 206 * We make a copy of net [all...] |
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_generic.c | 42 void *net; local 47 if ((net = __rpc_setconf(nettype)) == 0) { 52 while (nconf = __rpc_getconf(net)) { 128 __rpc_endconf(net);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nbp.c | 102 uint16_t net; local 114 net = get_short(p); 139 net, node, sock, enumer);
|
H A D | snoop_zip.c | 44 uint16_t net; local 112 net = get_short(p); 115 get_line_remain(), "Net = %d", net); 128 net = get_short(p); 135 net, p[0], &p[1]); 151 net = get_short(&p[2]); 181 "Network number = %d-%d", net, range); 203 net = get_short(&p[2]);
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gen_nw.c | 165 nw_byaddr(struct irs_nw *this, void *net, int length, int type) { argument 177 rval = (*nw->byaddr)(nw, net, length, type);
|
H A D | irp_nw.c | 65 struct nwent net; member in struct:pvt 129 free_nw(&pvt->net); 136 * struct nwent * nw_byaddr(struct irs_nw *this, void *net, 142 nw_byaddr(struct irs_nw *this, void *net, int length, int type) { argument 144 struct nwent *nw = &pvt->net; 151 if (inet_net_ntop(type, net, length, paddr, sizeof paddr) == NULL) { 193 struct nwent *nw = &pvt->net; 271 struct nwent *nw = &pvt->net;
|
H A D | getnetent.c | 87 getnetbyaddr(unsigned long net, int type) { argument 90 return (getnetbyaddr_p(net, type, net_data)); 146 getnetbyaddr_p(unsigned long net, int type, struct net_data *net_data) { argument 155 net == net_data->nw_last->n_net) 158 /* cannonize net(host order) */ 159 if (net < 256UL) { 160 net <<= 24; 162 } else if (net < 65536UL) { 163 net <<= 16; 165 } else if (net < 1677721 [all...] |
H A D | lcl_nw.c | 90 struct nwent net; member in struct:pvt 166 nw_byaddr(struct irs_nw *this, void *net, int length, int type) { argument 175 if (bitncmp(p->n_addr, net, length) == 0) 276 pvt->net.n_name = p; 286 pvt->net.n_length = inet_net_pton(AF_INET, cp, pvt->addr, 288 if (pvt->net.n_length < 0) 290 pvt->net.n_addrtype = AF_INET; 291 pvt->net.n_addr = pvt->addr; 292 q = pvt->net.n_aliases = pvt->aliases; 308 ret = &pvt->net; [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getnet.c | 72 uint32_t net; local 75 net = htonl(argp->key.netaddr.net); 76 up = (uchar_t *)&net; 97 argp->key.netaddr.net, argp->key.netaddr.type); 113 return (_NSC_INT_KEY_CMP(e1->key.netaddr.net, e2->key.netaddr.net)); 118 return (db_gethash(&key->netaddr.net, 119 sizeof (key->netaddr.net), htsize));
|
/illumos-gate/usr/src/lib/librpcsvc/common/ |
H A D | bootparam_prot.h | 49 char net; member in struct:ip_addr_t
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | hosts_access.c | 352 } else if ((mask = split_at(tok, '/')) != 0) { /* net/mask */ 389 unsigned long net; local 401 if ((net = dot_quad_addr(net_tok)) == INADDR_NONE 403 tcpd_warn("bad net/mask expression: %s/%s", net_tok, mask_tok); 406 return ((addr & mask) == net);
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv_net_secure.c | 52 inaddr_t net; member in struct:seclist 67 char strung[MAXLINE], nmask[MAXLINE], net[MAXLINE]; local 86 "%46s%46s", nmask, net) < 2) { 94 if (! string2inaddr(net, &netaf, &netin)) { 118 tmp1->net = netin; 160 addrequal(af, &tmp->net, &tmp->mask, &addr)) {
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | bootparam.h | 52 char net; member in struct:ip_addr_t
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | net.c | 56 int net; local 101 if ((net = netpr_send_message(sockfd, "", NULL)) != 0) { 104 bsdjob->np_filename, net); 107 bsdjob->np_filename, net);
|
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/ |
H A D | efinet.c | 36 #include <net.h> 120 EFI_SIMPLE_NETWORK *net; local 124 net = nif->nif_devdata; 126 status = net->Transmit(net, 0, len, pkt, 0, 0, 0); 133 status = net->GetStatus(net, 0, &buf); 148 EFI_SIMPLE_NETWORK *net; local 154 net = nif->nif_devdata; 159 status = net 183 EFI_SIMPLE_NETWORK *net; local 242 EFI_SIMPLE_NETWORK *net = nif->nif_devdata; local 296 EFI_SIMPLE_NETWORK *net; local [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_init.c | 127 #include <net/if.h> 192 char *net; local 522 net = cp; 528 if (inet_aton(net, &a)) { 532 net = cp; 539 if (inet_aton(net, &a)) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keygen/ |
H A D | keygen.c | 60 static char *opts[] = { "net", "cid", "type", NULL }; 66 * net=<addr>,cid=<cid>,type=<3des|aes|sha1|rsa> 69 * supplied arguments, 'net', 'cid' and 'ka'. 75 process_option(char *arg, char **net, char **cid, wbku_key_attr_t *ka) argument 86 *net = value; 113 if (*net != NULL && **net == '\0') { 114 wbku_printerr("Missing net option value\n"); 121 if (*cid != NULL && *net == NULL) { 123 "The cid option requires net optio 172 create_client_filename(char *filename, size_t len, const char *net, const char *cid, boolean_t create) argument 356 client_gen_key(const char *filename, wbku_key_attr_t *ka, const char *net, const char *cid) argument 616 char *net = NULL; local [all...] |
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_ip_route.c | 45 #include <net/if.h> 224 * address of "best" router that is on same net as client. 301 in_addr_t addr, mask, net; local 307 net = addr & mask; 311 net == (client_addr.s_addr & mask)) { 329 msgout("get_ip_route: no interface on same net " 338 * interface on the same net as the client. 481 in_addr_t addr, mask, net; local 487 net = addr & mask; 491 (client_addr.s_addr & mask) == net) { [all...] |
/illumos-gate/usr/src/uts/common/avs/ncall/ |
H A D | ncall_stub.c | 88 ncall_stub_alloc(int host_id, int flags, int net, ncall_t **ncall_p) argument
|