Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 250) sorted by relevance

12345678910

/titanic_41/usr/src/lib/libsocket/socket/
H A D_soutil.c125 struct netconfig *net; in _s_netconfig_path() local
129 net = _s_match_netconf(family, type, protocol, &nethandle); in _s_netconfig_path()
130 if (net == NULL) in _s_netconfig_path()
133 if (strcmp(net->nc_proto, NC_NOPROTO) != 0) in _s_netconfig_path()
139 if (stat(net->nc_device, &stats) < 0) { in _s_netconfig_path()
160 *pathp = malloc(strlen(net->nc_device) + 1); in _s_netconfig_path()
166 (void) strcpy(*pathp, net->nc_device); in _s_netconfig_path()
178 struct netconfig *net; in _s_match_netconf() local
204 while ((net = getnetconfig(*nethandle)) != NULL) { in _s_match_netconf()
211 unsigned int semantics = net->nc_semantics; in _s_match_netconf()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/inet/
H A Dinet_makeaddr.c51 inet_makeaddr(net, host) in inet_makeaddr() argument
52 u_long net, host; in inet_makeaddr()
56 if (net < 128U)
57 a.s_addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);
58 else if (net < 65536U)
59 a.s_addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST);
60 else if (net < 16777216L)
61 a.s_addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST);
63 a.s_addr = net | host;
/titanic_41/usr/src/lib/libsocket/inet/
H A Dinet_mkaddr.c50 inet_makeaddr(ipaddr_t net, ipaddr_t host) in inet_makeaddr() argument
55 if (net < 128) in inet_makeaddr()
56 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); in inet_makeaddr()
57 else if (net < 65536) in inet_makeaddr()
58 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST); in inet_makeaddr()
59 else if (net < 16777216L) in inet_makeaddr()
60 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST); in inet_makeaddr()
62 addr = net | host; in inet_makeaddr()
H A Dgetnetent_r.c79 getnetbyaddr_r(long net, int type, struct netent *result, in getnetbyaddr_r() argument
86 arg.key.netaddr.net = (uint32_t)net; in getnetbyaddr_r()
137 struct netent *net = (struct netent *)ent; in str2netent() local
165 net->n_name = buffer; in str2netent()
185 net->n_net = inet_network(numbuf); in str2netent()
186 if (net->n_net == (in_addr_t)-1) { in str2netent()
191 net->n_addrtype = AF_INET; in str2netent()
207 net->n_aliases = 0; /* hope they don't try to peek in */ in str2netent()
211 net->n_aliases = ptr; in str2netent()
215 net->n_aliases = _nss_netdb_aliases(p, lenstr - (int)(p - instr), in str2netent()
H A Dnetmasks.c127 getnetmaskbynet(const struct in_addr net, struct in_addr *mask) in getnetmaskbynet() argument
132 i = ntohl(net.s_addr); in getnetmaskbynet()
187 struct in_addr prevnet, net; in getnetmaskbyaddr() local
195 net.s_addr = htonl(i & maskoff); in getnetmaskbyaddr()
197 if (net.s_addr != prevnet.s_addr) { in getnetmaskbyaddr()
198 if (getnetmaskbykey(net, mask) != 0) { in getnetmaskbyaddr()
205 prevnet.s_addr = net.s_addr; in getnetmaskbyaddr()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_stub_vnops.c305 nfs4_ephemeral_tree_incr(nfs4_ephemeral_tree_t *net) in nfs4_ephemeral_tree_incr() argument
307 ASSERT(mutex_owned(&net->net_cnt_lock)); in nfs4_ephemeral_tree_incr()
308 net->net_refcnt++; in nfs4_ephemeral_tree_incr()
309 ASSERT(net->net_refcnt != 0); in nfs4_ephemeral_tree_incr()
313 nfs4_ephemeral_tree_hold(nfs4_ephemeral_tree_t *net) in nfs4_ephemeral_tree_hold() argument
315 mutex_enter(&net->net_cnt_lock); in nfs4_ephemeral_tree_hold()
316 nfs4_ephemeral_tree_incr(net); in nfs4_ephemeral_tree_hold()
317 mutex_exit(&net->net_cnt_lock); in nfs4_ephemeral_tree_hold()
325 nfs4_ephemeral_tree_decr(nfs4_ephemeral_tree_t *net) in nfs4_ephemeral_tree_decr() argument
327 ASSERT(mutex_owned(&net->net_cnt_lock)); in nfs4_ephemeral_tree_decr()
[all …]
/titanic_41/usr/src/uts/intel/os/
H A Dmaster60 # net ... Network devices
209 PNP8231|ATK1500|ADV55AA|PNP828C|CSI2203 pcn net all pcn.bef "AMD PCnet-ISA 79C960/PCnet-32 79C965 E…
230 pci1011,2 pci1011,2 net pci dnet.bef "DEC 21040 Ethernet"
231 pci1011,9 pci1011,9 net pci dnet.bef "DEC 21140 Fast Ethernet"
232 pci1011,14 pci1011,14 net pci dnet.bef "DEC 21041 Ethernet"
233 pci1011,19 pci1011,19 net pci dnet.bef "DEC 21142/21143 Fast Ethernet"
234 pci1022,2000 pci1022,2000 net pci pcn.bef "AMD 79C970 PCnet Ethernet"
235 pci103c,104c pci103c,104c net pci pcn.bef "HP 'Tweety' PCnet Fast Ethernet"
236 pci10b7,9000 pci10b7,9000 net pci elxl.bef "3Com 3C900-TPO Etherlink XL"
237 pci10b7,9001 pci10b7,9001 net pci elxl.bef "3Com 3C900-COMBO Etherlink XL"
[all …]
/titanic_41/usr/src/lib/libbc/libc/inet/
H A Dinet_makeaddr.c48 inet_makeaddr(net, host) in inet_makeaddr() argument
49 int net, host; in inet_makeaddr()
54 if (net < 128)
55 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);
56 else if (net < 65536)
57 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST);
59 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST);
/titanic_41/usr/src/lib/libslp/etc/
H A Dslp.conf.example38 # net.slp.isDA=true
46 # net.slp.useScopes=default
49 # net.slp.useScopes=building17,building18,admin
57 # net.slp.DAAddresses=192.168.1.20,192.168.2.20
65 # net.slp.serializedRegURL=file:/etc/inet/slpd.reg
73 # net.slp.traceDATraffic=true
76 # net.slp.traceMsg=true
79 # net.slp.traceDrop=true
82 # net.slp.traceReg=true
88 # net.slp.DAHeartBeat=7200
[all …]
/titanic_41/usr/src/cmd/svc/milestone/
H A DMakefile112 net-loc \
113 net-loopback \
114 net-init \
115 net-install \
116 net-iptun \
117 net-ipqos \
118 net-netmask \
119 net-nwam \
120 net-physical \
121 net-routing-setup \
[all …]
/titanic_41/usr/src/cmd/nscd/
H A Dgetnet.c72 uint32_t net; in netaddr_getlogstr() local
75 net = htonl(argp->key.netaddr.net); in netaddr_getlogstr()
76 up = (uchar_t *)&net; in netaddr_getlogstr()
97 argp->key.netaddr.net, argp->key.netaddr.type); in netaddr_getlogstr()
113 return (_NSC_INT_KEY_CMP(e1->key.netaddr.net, e2->key.netaddr.net)); in netaddr_compar()
118 return (db_gethash(&key->netaddr.net, in netaddr_gethash()
119 sizeof (key->netaddr.net), htsize)); in netaddr_gethash()
/titanic_41/usr/src/cmd/rpcsvc/
H A Drstat_proc.c916 struct netinfo *net, *prevnet, *comp; in init_net() local
950 net = &zeronet; in init_net()
990 prevnet = net; in init_net()
991 if (net->next) in init_net()
992 net = net->next; in init_net()
994 safe_zalloc((void **)&net->next, in init_net()
996 net = net->next; in init_net()
997 net->next = NULLNET; in init_net()
999 net->ks = ksp; in init_net()
1000 net->ipackets = kstat_data_lookup(net->ks, in init_net()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wanboot/keygen/
H A Dkeygen.c75 process_option(char *arg, char **net, char **cid, wbku_key_attr_t *ka) in process_option() argument
86 *net = value; in process_option()
113 if (*net != NULL && **net == '\0') { in process_option()
121 if (*cid != NULL && *net == NULL) { in process_option()
172 create_client_filename(char *filename, size_t len, const char *net, in create_client_filename() argument
178 if (net == NULL) { in create_client_filename()
180 } else if (inet_pton(AF_INET, net, &addr) != 1) { in create_client_filename()
181 wbku_printerr("%s is not a valid network address\n", net); in create_client_filename()
184 size = snprintf(filename, len, "%s/%s", CLIENT_KEY_DIR, net); in create_client_filename()
192 net, cid); in create_client_filename()
[all …]
/titanic_41/usr/src/lib/libwanboot/
H A DMakefile41 HDRDIR = $(SRCDIR) $(SRC)/common/net/wanboot
43 CHECKHDRS += $(SRC)/common/net/wanboot/auxutil.h
46 MSGFILES = $(SRC)/common/net/wanboot/bootconf_errmsg.c \
47 $(SRC)/common/net/wanboot/boot_http.c \
48 $(SRC)/common/net/wanboot/bootlog.c \
49 $(SRC)/common/net/wanboot/http_errorstr.c \
50 $(SRC)/common/net/wanboot/p12err.c
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dgetnetent.c87 getnetbyaddr(unsigned long net, int type) { in getnetbyaddr() argument
90 return (getnetbyaddr_p(net, type, net_data)); in getnetbyaddr()
146 getnetbyaddr_p(unsigned long net, int type, struct net_data *net_data) { in getnetbyaddr_p() argument
155 net == net_data->nw_last->n_net) in getnetbyaddr_p()
159 if (net < 256UL) { in getnetbyaddr_p()
160 net <<= 24; in getnetbyaddr_p()
162 } else if (net < 65536UL) { in getnetbyaddr_p()
163 net <<= 16; in getnetbyaddr_p()
165 } else if (net < 16777216UL) { in getnetbyaddr_p()
166 net <<= 8; in getnetbyaddr_p()
[all …]
H A Ddns_nw.c62 struct nwent net; member
167 nw_byaddr(struct irs_nw *this, void *net, int len, int af) { in nw_byaddr() argument
175 return (get1101byaddr(this, net, len)); in nw_byaddr()
265 get1101byaddr(struct irs_nw *this, u_char *net, int len) { in get1101byaddr() argument
277 if (make1101inaddr(net, len, qbuf, sizeof qbuf) < 0) in get1101byaddr()
291 AF_INET, NULL, net, len)); in get1101byaddr()
336 pvt->net.n_name = NULL; in get1101answer()
337 pvt->net.n_aliases = pvt->ali; in get1101answer()
338 pvt->net.n_addrtype = af; in get1101answer()
339 pvt->net.n_addr = NULL; in get1101answer()
[all …]
H A Dlcl_nw.c90 struct nwent net; member
166 nw_byaddr(struct irs_nw *this, void *net, int length, int type) { in nw_byaddr() argument
175 if (bitncmp(p->n_addr, net, length) == 0) in nw_byaddr()
276 pvt->net.n_name = p; in nw_next()
286 pvt->net.n_length = inet_net_pton(AF_INET, cp, pvt->addr, in nw_next()
288 if (pvt->net.n_length < 0) in nw_next()
290 pvt->net.n_addrtype = AF_INET; in nw_next()
291 pvt->net.n_addr = pvt->addr; in nw_next()
292 q = pvt->net.n_aliases = pvt->aliases; in nw_next()
308 ret = &pvt->net; in nw_next()
H A Dirp_nw.c65 struct nwent net; member
129 free_nw(&pvt->net); in nw_close()
142 nw_byaddr(struct irs_nw *this, void *net, int length, int type) { in nw_byaddr() argument
144 struct nwent *nw = &pvt->net; in nw_byaddr()
151 if (inet_net_ntop(type, net, length, paddr, sizeof paddr) == NULL) { in nw_byaddr()
193 struct nwent *nw = &pvt->net; in nw_byname()
271 struct nwent *nw = &pvt->net; in nw_next()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dnetwork.c99 FD_SET(net, &excepts); in stilloob()
100 value = select(net+1, NULL, NULL, &excepts, &timeout); in stilloob()
108 if (FD_ISSET(net, &excepts)) { in stilloob()
150 n = send(net, netoring.consume, n, 0); in netflush()
160 n = send(net, netoring.consume, 1, MSG_OOB); in netflush()
H A Dsys_bsd.c69 int net = -1; variable
716 NetNonblockingIO(net, 1); in sys_telnet_init()
718 if (SetSockOpt(net, SOL_SOCKET, SO_OOBINLINE, 1) == -1) { in sys_telnet_init()
767 FD_SET(net, &obits);
776 FD_SET(net, &ibits);
779 FD_SET(net, &xbits);
802 if (FD_ISSET(net, &xbits)) {
803 FD_CLR(net, &xbits);
817 if (FD_ISSET(net, &ibits)) {
820 FD_CLR(net, &ibits);
[all …]
/titanic_41/usr/src/cmd/listen/
H A DMakefile43 NETD = $(ROOT)/usr/net
82 $(RM) $(ROOT)/usr/net/nls/listen
83 -$(SYMLINK) ../../lib/saf/listen $(ROOT)/usr/net/nls/listen
84 $(RM) $(ROOT)/usr/net/nls/nlps_server
85 -$(SYMLINK) ../../lib/saf/nlps_server $(ROOT)/usr/net/nls/nlps_server
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/
H A Dwanboot-cgi.c195 gen_tmppath(const char *prefix, const char *net, const char *cid) in gen_tmppath() argument
205 prefix, net, cid, pid, secs)) < 0 || chars > sizeof (path) || in gen_tmppath()
701 netboot_ftw(const char *filename, const char *net, const char *cid, in netboot_ftw() argument
713 if (net != NULL && snprintf(ckpath[i++], MAXPATHLEN, "%s%s/%s", in netboot_ftw()
714 NB_NETBOOT_ROOT, net, filename) >= MAXPATHLEN) in netboot_ftw()
722 if (net != NULL && snprintf(ckpath[i++], MAXPATHLEN, in netboot_ftw()
723 "%s%s/%s/%s", NB_NETBOOT_ROOT, net, cid, filename) >= in netboot_ftw()
1135 create_hostsfile(const char *hostsfile, const char *net, const char *cid) in create_hostsfile() argument
1157 if (netboot_ftw(NB_CLIENT_CERT, net, cid, in create_hostsfile()
1159 netboot_ftw(NB_CA_CERT, net, cid, in create_hostsfile()
[all …]
/titanic_41/usr/src/cmd/ypcmd/
H A Dypserv_net_secure.c52 inaddr_t net; member
67 char strung[MAXLINE], nmask[MAXLINE], net[MAXLINE]; in get_secure_nets() local
86 "%46s%46s", nmask, net) < 2) { in get_secure_nets()
94 if (! string2inaddr(net, &netaf, &netin)) { in get_secure_nets()
118 tmp1->net = netin; in get_secure_nets()
160 addrequal(af, &tmp->net, &tmp->mask, &addr)) { in check_secure_net_ti()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_zip.c44 uint16_t net; in interpret_ddp_zip() local
112 net = get_short(p); in interpret_ddp_zip()
115 get_line_remain(), "Net = %d", net); in interpret_ddp_zip()
128 net = get_short(p); in interpret_ddp_zip()
135 net, p[0], &p[1]); in interpret_ddp_zip()
151 net = get_short(&p[2]); in interpret_ddp_zip()
181 "Network number = %d-%d", net, range); in interpret_ddp_zip()
203 net = get_short(&p[2]); in interpret_ddp_zip()
/titanic_41/usr/src/cmd/mailx/
H A Doptim.c59 static void optiboth(char net[]);
60 static void optim(char net[], char name[]);
62 static int optimex(char net[], char name[]);
63 static int optimimp(char net[], char name[]);
549 optim(char net[], char name[]) in optim() argument
555 if (debug) fprintf(stderr, "optim(%s, %s) called\n", net, name); in optim()
557 cp = net; in optim()
576 nstrcpy(name, BUFSIZ, net); in optim()
714 optimex(char net[], char name[]) in optimex() argument
719 nstrcpy(name, STSIZ, net); in optimex()
[all …]

12345678910