/osnet-11/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;
|
/osnet-11/usr/src/grub/grub2/include/grub/ |
H A D | device.h | 32 struct grub_net *net; member in struct:grub_device
|
/osnet-11/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...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | reentr.c | 398 Netdb_net_t net; local 404 net = va_arg(ap, Netdb_net_t); 406 retptr = getnetbyaddr(net, anint); break;
|
/osnet-11/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...] |
H A D | dns_nw.c | 62 struct nwent net; member in struct:pvt 167 nw_byaddr(struct irs_nw *this, void *net, int len, int af) { argument 175 return (get1101byaddr(this, net, len)); 265 get1101byaddr(struct irs_nw *this, u_char *net, int len) { argument 277 if (make1101inaddr(net, len, qbuf, sizeof qbuf) < 0) 291 AF_INET, NULL, net, len)); 336 pvt->net.n_name = NULL; 337 pvt->net.n_aliases = pvt->ali; 338 pvt->net.n_addrtype = af; 339 pvt->net 523 make1101inaddr(const u_char *net, int bits, char *name, int size) argument [all...] |
/osnet-11/usr/src/lib/librpcsvc/common/ |
H A D | bootparam_prot.h | 45 char net; member in struct:ip_addr_t
|
/osnet-11/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);
|
/osnet-11/usr/src/grub/grub2/grub-core/net/drivers/efi/ |
H A D | efinet.c | 20 #include <grub/net/netbuff.h> 22 #include <grub/net.h> 49 grub_efi_simple_network_t *net = dev->efi_net; local 52 if (! net) 55 st = efi_call_7 (net->transmit, net, 0, (pack->tail - pack->data), 62 st = efi_call_3 (net->get_status, net, 0, &txbuf); 75 grub_efi_simple_network_t *net = dev->efi_net; local 81 if (! net) 144 grub_efi_simple_network_t *net = dev->efi_net; local 178 setup_filters(grub_efi_simple_network_t *net, int exclusive) argument 228 grub_efi_simple_network_t *net; local 305 grub_efi_simple_network_t *net; local [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/net/ |
H A D | http.c | 20 #include <grub/net/tcp.h> 21 #include <grub/net/ip.h> 22 #include <grub/net/ethernet.h> 23 #include <grub/net/netbuff.h> 24 #include <grub/net.h> 56 grub_net_t net = file->device->net; local 57 grub_off_t ret = net->offset; 59 for (pack = net->packs.first; pack; pack = pack->next) 83 file->device->net [all...] |
H A D | net.c | 20 #include <grub/net.h> 21 #include <grub/net/netbuff.h> 30 #include <grub/net/ethernet.h> 31 #include <grub/net/arp.h> 32 #include <grub/net/ip.h> 462 match_net (const grub_net_network_level_netaddress_t *net, argument 465 if (net->addr.type != addr->type) 467 switch (net->addr.type) 473 grub_uint32_t mask = (0xffffffffU << (32 - net->masksize)); 474 if (net 1390 grub_net_t net = file->device->net; local 1440 grub_net_t net = file->device->net; local [all...] |
/osnet-11/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_init.c | 131 #include <net/if.h> 196 char *net; local 536 net = cp; 542 if (inet_aton(net, &a)) { 546 net = cp; 553 if (inet_aton(net, &a)) {
|
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/ |
H A D | multiboot_mbi.c | 40 #include <grub/net.h> 203 struct grub_net_network_level_interface *net; local 217 FOR_NET_NETWORK_LEVEL_INTERFACES(net) 218 if (net->dhcp_ack) 220 ret += net->dhcp_acklen; 553 struct grub_net_network_level_interface *net; local 554 FOR_NET_NETWORK_LEVEL_INTERFACES(net) 555 if (net->dhcp_ack) 557 grub_memcpy (ptrorig, net->dhcp_ack, net [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/loader/ |
H A D | multiboot_mbi2.c | 40 #include <grub/net.h> 671 struct grub_net_network_level_interface *net; local 672 FOR_NET_NETWORK_LEVEL_INTERFACES(net) 673 if (net->dhcp_ack) 675 dhcp_ack_data = (grub_uint8_t *)net->dhcp_ack; 676 dhcp_ack_size = net->dhcp_acklen;
|
/osnet-11/usr/src/grub/grub-0.97/netboot/ |
H A D | nic.c | 266 int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24; local 267 if (net <= 127) 269 else if (net < 192)
|
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet.c | 76 #include <net/if.h> 3020 _inet_makeaddr(in_addr_t net, in_addr_t host) argument 3025 if (net < 128) 3026 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 3027 else if (net < 65536) 3028 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); 3029 else if (net < 16777216L) 3030 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); 3032 addr = net | host;
|