Lines Matching refs:sin_addr
338 sin->sin_addr.s_addr = INADDR_ANY; /* XXX: htonl(INAADDR_ANY) ? */
558 sin->sin_addr.s_addr = INADDR_BROADCAST;
657 sin->sin_addr.s_addr = htonl(IN_CLASSA_NET);
885 sin->sin_addr.s_addr = htonl(IN_CLASSA_NET);
888 sin->sin_addr.s_addr = htonl(INADDR_BROADCAST);
967 ifra->ifra_broadaddr.sin_addr.s_addr = myaddr->sin_addr.s_addr |
968 ~netmask->sin_addr.s_addr;
984 if (ifctx->gw.sin_addr.s_addr == htonl(INADDR_ANY))
1012 if (ifctx->gw.sin_addr.s_addr == htonl(INADDR_ANY))
1035 if (getip(&p, &addr->sin_addr) == 0) {
1037 bcopy(siaddr, &addr->sin_addr, sizeof(struct in_addr));
1156 print_in_addr(sin->sin_addr);
1345 ifctx->myaddr.sin_addr = ifctx->reply.yiaddr;
1347 ip = ntohl(ifctx->myaddr.sin_addr.s_addr);
1354 ifctx->gw.sin_addr = ifctx->reply.giaddr;
1379 bcopy(p, &ifctx->netmask.sin_addr, 4);
1393 bcopy(p, &ifctx->gw.sin_addr, 4);
1488 if (IN_CLASSA(ntohl(ifctx->myaddr.sin_addr.s_addr)))
1489 ifctx->netmask.sin_addr.s_addr = htonl(IN_CLASSA_NET);
1490 else if (IN_CLASSB(ntohl(ifctx->myaddr.sin_addr.s_addr)))
1491 ifctx->netmask.sin_addr.s_addr = htonl(IN_CLASSB_NET);
1493 ifctx->netmask.sin_addr.s_addr = htonl(IN_CLASSC_NET);
1703 ((struct sockaddr_in *) &nd->myif.ifra_broadaddr)->sin_addr.s_addr =
1704 ifctx->myaddr.sin_addr.s_addr |
1705 ~ ifctx->netmask.sin_addr.s_addr;