Lines Matching refs:s_addr

347 		if ((_rt->mfc_origin.s_addr == o) && \
348 (_rt->mfc_mcastgrp.s_addr == g) && \
526 MFCFIND(req->src.s_addr, req->grp.s_addr, rt);
606 if (viftable[vifi].v_lcl_addr.s_addr != 0 &&
609 ((struct sockaddr_in *)&(ifr.ifr_addr))->sin_addr.s_addr
691 if (vifp->v_lcl_addr.s_addr != 0) return EADDRINUSE;
767 (u_int32_t)ntohl(vifcp->vifc_lcl_addr.s_addr),
769 (u_int32_t)ntohl(vifcp->vifc_rmt_addr.s_addr),
788 if (vifp->v_lcl_addr.s_addr == 0) return EADDRNOTAVAIL;
792 ((struct sockaddr_in *)&(ifr.ifr_addr))->sin_addr.s_addr = INADDR_ANY;
819 if (viftable[vifi-1].v_lcl_addr.s_addr != 0) break;
837 MFCFIND(mfccp->mfcc_origin.s_addr, mfccp->mfcc_mcastgrp.s_addr, rt);
843 (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr),
844 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr),
856 hash = MFCHASH(mfccp->mfcc_origin.s_addr, mfccp->mfcc_mcastgrp.s_addr);
859 if ((rt->mfc_origin.s_addr == mfccp->mfcc_origin.s_addr) &&
860 (rt->mfc_mcastgrp.s_addr == mfccp->mfcc_mcastgrp.s_addr) &&
866 (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr),
867 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr),
872 (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr),
873 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr),
912 hash, (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr),
913 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr),
918 if ((rt->mfc_origin.s_addr == mfccp->mfcc_origin.s_addr) &&
919 (rt->mfc_mcastgrp.s_addr == mfccp->mfcc_mcastgrp.s_addr)) {
1005 hash = MFCHASH(origin.s_addr, mcastgrp.s_addr);
1009 (u_int32_t)ntohl(origin.s_addr), (u_int32_t)ntohl(mcastgrp.s_addr));
1013 if (origin.s_addr == rt->mfc_origin.s_addr &&
1014 mcastgrp.s_addr == rt->mfc_mcastgrp.s_addr &&
1080 (u_int32_t)ntohl(ip->ip_src.s_addr), (u_int32_t)ntohl(ip->ip_dst.s_addr),
1097 (u_int32_t)ntohl(ip->ip_src.s_addr));
1111 ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr), vifi,
1121 ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr));
1131 ntohl(ip->ip_dst.s_addr) <= INADDR_MAX_LOCAL_GROUP)
1137 MFCFIND(ip->ip_src.s_addr, ip->ip_dst.s_addr, rt);
1162 (u_int32_t)ntohl(ip->ip_src.s_addr),
1163 (u_int32_t)ntohl(ip->ip_dst.s_addr));
1183 hash = MFCHASH(ip->ip_src.s_addr, ip->ip_dst.s_addr);
1185 if ((ip->ip_src.s_addr == rt->mfc_origin.s_addr) &&
1186 (ip->ip_dst.s_addr == rt->mfc_mcastgrp.s_addr) &&
1233 rt->mfc_origin.s_addr = ip->ip_src.s_addr;
1234 rt->mfc_mcastgrp.s_addr = ip->ip_dst.s_addr;
1306 (u_int32_t)ntohl(mfc->mfc_origin.s_addr),
1307 (u_int32_t)ntohl(mfc->mfc_mcastgrp.s_addr));
1420 if (ip->ip_src.s_addr == viftable[vifi].v_lcl_addr.s_addr) {
1471 return viftable[vifi].v_lcl_addr.s_addr;
1600 if (! IN_MULTICAST(ntohl(((struct ip *)((char *)ip + hlen))->ip_dst.s_addr))) {
1605 if (ip->ip_src.s_addr != last_encap_src) {
1610 last_encap_src = ip->ip_src.s_addr;
1613 if (vifp->v_rmt_addr.s_addr == ip->ip_src.s_addr) {
1626 (u_int32_t)ntohl(ip->ip_src.s_addr));