Lines Matching refs:SIN_ADDR
231 #define SIN_ADDR(x) (((struct sockaddr_in *) (&(x)))->sin_addr.s_addr) macro
1553 SIN_ADDR(rt->rt_dst) = strtoul(cols[route_dest_col], NULL, 16); in read_route_table()
1554 SIN_ADDR(rt->rt_gateway) = strtoul(cols[route_gw_col], NULL, 16); in read_route_table()
1555 SIN_ADDR(rt->rt_genmask) = strtoul(cols[route_mask_col], NULL, 16); in read_route_table()
1579 if (kernel_version > KVERSION(2,1,0) && SIN_ADDR(rt->rt_genmask) != 0) in defaultroute_exists()
1581 if (SIN_ADDR(rt->rt_dst) == 0L) { in defaultroute_exists()
1609 if ((addr & SIN_ADDR(rt.rt_genmask)) == SIN_ADDR(rt.rt_dst)) { in have_route_to()
1631 SIN_ADDR(rt.rt_gateway)); in sifdefaultroute()
1645 SIN_ADDR(rt.rt_genmask) = 0L; in sifdefaultroute()
1678 SIN_ADDR(rt.rt_genmask) = 0L; in cifdefaultroute()
1707 SIN_ADDR(arpreq.arp_pa) = his_adr; in sifproxyarp()
1757 SIN_ADDR(arpreq.arp_pa) = his_adr; in cifproxyarp()
1805 ina = SIN_ADDR(ifr->ifr_addr); in get_ether_addr()
1822 mask = SIN_ADDR(ifreq.ifr_addr); in get_ether_addr()
1941 ina = SIN_ADDR(ifr->ifr_addr); in GetMask()
1958 mask |= SIN_ADDR(ifreq.ifr_addr); in GetMask()
2382 SIN_ADDR(ifr.ifr_addr) = our_adr; in sifaddr()
2397 SIN_ADDR(ifr.ifr_dstaddr) = his_adr; in sifaddr()
2411 SIN_ADDR(ifr.ifr_netmask) = net_mask; in sifaddr()
2426 SIN_ADDR(rt.rt_gateway) = 0L; in sifaddr()
2427 SIN_ADDR(rt.rt_dst) = his_adr; in sifaddr()
2432 SIN_ADDR(rt.rt_genmask) = -1L; in sifaddr()
2483 SIN_ADDR(rt.rt_gateway) = 0; in cifaddr()
2484 SIN_ADDR(rt.rt_dst) = his_adr; in cifaddr()
2489 SIN_ADDR(rt.rt_genmask) = -1L; in cifaddr()