Searched refs:s_addr (Results 1 - 25 of 111) sorted by relevance

12345

/osnet-11/usr/src/lib/libresolv2/common/inet/
H A Dinet_makeaddr.c57 a.s_addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);
59 a.s_addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST);
61 a.s_addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST);
63 a.s_addr = net | host;
64 a.s_addr = htonl(a.s_addr);
H A Dinet_lnaof.c55 register u_long i = ntohl(in.s_addr);
H A Dinet_netof.c54 register u_long i = ntohl(in.s_addr);
/osnet-11/usr/src/lib/libsocket/inet/
H A Dnetmasks.c66 uint32_t addr = in.s_addr;
132 i = ntohl(net.s_addr);
140 net2.s_addr = htonl(i);
142 net1.s_addr = htonl(i << IN_CLASSC_NSHIFT);
144 net1.s_addr = htonl(i << IN_CLASSB_NSHIFT);
146 net1.s_addr = htonl(i << IN_CLASSA_NSHIFT);
149 net1.s_addr = htonl(i & IN_CLASSA_NET);
150 net2.s_addr = htonl(i >> IN_CLASSA_NSHIFT);
152 net1.s_addr = htonl(i & IN_CLASSB_NET);
153 net2.s_addr
[all...]
H A Dinet_lnaof.c50 uint32_t i = ntohl(in.s_addr);
H A Dinet_mkaddr.c64 inaddr.s_addr = addr;
/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Din.h18 uint32_t s_addr; member in struct:__anon215
H A Dnic.c266 int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24;
305 destip = ip->dest.s_addr;
323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) &&
324 arptable[ARP_GATEWAY].ipaddr.s_addr)
325 destip = arptable[ARP_GATEWAY].ipaddr.s_addr;
327 if (arptable[arpentry].ipaddr.s_addr == destip) break;
375 ip->src.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr;
376 ip->dest.s_addr = destip;
386 pseudo.src.s_addr
[all...]
H A Dfsys_tftp.c74 if (arptable[ARP_CLIENT].ipaddr.s_addr != ip->dest.s_addr)
107 if (!udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, ++iport,
122 if (!udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr,
133 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr,
186 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr,
213 udp_transmit(arptable[ARP_SERVER].ipaddr.s_addr, iport,
266 if (! udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr,
280 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr,
356 udp_transmit (arptable[ARP_SERVER].ipaddr.s_addr,
[all...]
/osnet-11/usr/src/lib/libinetutil/common/
H A Dinetutil.c56 hp.s_addr = htonl(n_addrp->s_addr);
58 s_addrp->s_addr = ntohl(tp.s_addr);
65 if (IN_CLASSA(n_addrp->s_addr))
66 s_addrp->s_addr = IN_CLASSA_NET;
67 else if (IN_CLASSB(n_addrp->s_addr))
68 s_addrp->s_addr = IN_CLASSB_NET;
69 else if (IN_CLASSC(n_addrp->s_addr))
70 s_addrp->s_addr
[all...]
/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c113 if (memcmp(&(all_ifs[i].addr.sin_addr.s_addr),
114 &(given_ifs[j].s_addr),
115 sizeof (given_ifs[j].s_addr)) == 0 &&
116 all_ifs[i].bc_addr.sin_addr.s_addr != 0) {
166 netmask.s_addr = all_ifs[i].netmask.sin_addr.s_addr;
168 net_addr.s_addr =
169 all_ifs[i].addr.sin_addr.s_addr & netmask.s_addr;
171 masked_addr.s_addr
[all...]
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/
H A Ddhcp_network.c79 dhp->dh_net = netp->s_addr;
83 net2path(dnpath, MAXPATHLEN, location, netp->s_addr, "");
102 net_nbo.s_addr = htonl(netp->s_addr);
130 if (nelems != 3 || inet_addr(connet) != htonl(netp->s_addr) ||
155 net2path(dnpath, MAXPATHLEN, dir, netp->s_addr, "");
206 cip_nbo.s_addr = htonl(targetp->dn_cip.s_addr);
379 dnp->dn_cip.s_addr = ntohl(inet_addr(fields[DNF_CIP]));
381 dnp->dn_cip.s_addr !
[all...]
/osnet-11/usr/src/lib/nsswitch/files/common/
H A Dnetmasks.c72 if ((lineaddr.s_addr = inet_addr(addrbuf)) ==
75 if ((argsaddr.s_addr = inet_addr(argp->key.name))
78 return (lineaddr.s_addr == argsaddr.s_addr);
/osnet-11/usr/src/lib/libdhcpsvc/modules/files0/
H A Ddhcp_network.c73 dhp->dh_net = netp->s_addr;
82 net2path(dnpath, MAXPATHLEN, location, netp->s_addr, "");
106 net2path(dnpath, MAXPATHLEN, dir, netp->s_addr, "");
309 dnp->dn_cip.s_addr = ntohl(inet_addr(fields[DNF_CIP]));
311 dnp->dn_cip.s_addr != targetp->dn_cip.s_addr)
314 dnp->dn_cip.s_addr == targetp->dn_cip.s_addr)
342 dnp->dn_sip.s_addr = ntohl(inet_addr(fields[DNF_SIP]));
344 dnp->dn_sip.s_addr !
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Socket/
H A DSocket.xs174 addr->s_addr = htonl(val);
197 * than the s_addr (which is the field we care about
203 * Bad Assumption 2: the s_addr field is a simple type
208 * to use addr.s_addr instead of addr, you have been warned.)
210 * Bad Assumption 3: the s_addr is the first field in
216 * #define s_addr s_da.st_addr
262 addr.s_addr =
277 ((addr.s_addr >> 24) & 0xFF),
278 ((addr.s_addr >> 16) & 0xFF),
279 ((addr.s_addr >>
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dinet_ntoa.c251 addr->s_addr = htonl(val);
268 return (val.s_addr);
279 uint32_t i = ntohl(in.s_addr);
/osnet-11/usr/src/lib/libsmbns/common/
H A Dsmbns_netbios_datagram.c360 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr,
377 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr;
383 sin.sin_addr.s_addr = ipaddr.a_ipv4;
440 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr,
457 ipaddr.a_ipv4 = addr->sin.sin_addr.s_addr;
462 sin.sin_addr.s_addr = ipaddr.a_ipv4;
502 (void) memcpy(&datagram->src.addr_list.sin.sin_addr.s_addr,
718 if (prev->src.addr_list.sin.sin_addr.s_addr ==
719 datagram->src.addr_list.sin.sin_addr.s_addr) {
796 &datagram->src.addr_list.sin.sin_addr.s_addr,
[all...]
/osnet-11/usr/src/lib/libuuid/common/
H A Detheraddr.c66 sin->sin_addr.s_addr = inet_addr(name.nodename);
67 if (sin->sin_addr.s_addr == (in_addr_t)-1) {
/osnet-11/usr/src/lib/libdhcpsvc/tests/
H A Dtest_private.c321 recs[0].dn_cip.s_addr = 0x81940502;
322 recs[0].dn_sip.s_addr = 0x81940501;
329 recs[1].dn_cip.s_addr = 0x81940503;
330 recs[1].dn_sip.s_addr = 0x81940501;
335 recs[2].dn_cip.s_addr = 0x81940504;
336 recs[2].dn_sip.s_addr = 0x81940501;
341 recs[3].dn_cip.s_addr = 0x81940505;
342 recs[3].dn_sip.s_addr = 0x81940501;
347 recs[4].dn_cip.s_addr = 0x81940506;
348 recs[4].dn_sip.s_addr
[all...]
/osnet-11/usr/src/lib/libwrap/
H A Dworkarounds.c66 return (inet_addr(string).s_addr);
177 && sin->sin_addr.s_addr == 0) {
236 if ((addr.s_addr = inet_addr(*o_aliases)) != INADDR_NONE) {
H A Dfix_options.c84 #define ADDR_LEN sizeof(dummy.s_addr)
/osnet-11/usr/src/lib/libdhcpsvc/modules/binfiles/
H A Ddhcp_network.c202 net2path(dnpath, MAXPATHLEN, dir, netp->s_addr);
217 header.dnh_network = netp->s_addr;
218 header.dnh_netmask = maskp->s_addr;
277 if (header.dnh_network != netp->s_addr ||
309 net2path(dnpath, MAXPATHLEN, dir, netp->s_addr);
353 temp_recid = RECID(header.dnh_temp.rec_dn.dn_cip.s_addr,
368 recid = RECID(targetp->dn_cip.s_addr, dhp->dh_netmask);
524 dnp->dn_cip.s_addr != targetp->dn_cip.s_addr)
527 dnp->dn_cip.s_addr
[all...]
/osnet-11/usr/src/lib/libdhcpsvc/modules/binfiles/tools/
H A Dprintnet.c80 in_addr.s_addr = header.dnh_network;
82 in_addr.s_addr = header.dnh_netmask;
/osnet-11/usr/src/lib/nsswitch/mdns/common/
H A Dgethostent.c78 if (inet_ntop(AF_INET, (void *) &addr.s_addr,
85 p = (uint8_t *)&addr.s_addr;
H A Dgethostent6.c86 if (inet_ntop(AF_INET, (void *) &ipv4addr.s_addr,
92 p = (uint8_t *)&ipv4addr.s_addr;

Completed in 104 milliseconds

12345