Home | History | Annotate | Download | only in slirp-android

Lines Matching defs:ip

44 /* return ip address in network order */
46 ip_getn( ipaddr_t ip )
48 return ip.addr;
51 /* return ip address in host order */
53 ip_geth( ipaddr_t ip )
55 return ntohl(ip.addr);
58 /* set ip address in network order */
62 ipaddr_t ip;
63 ip.addr = val;
64 return ip;
67 /* set ip address in host order */
71 ipaddr_t ip;
72 ip.addr = htonl(val);
73 return ip;
79 ipaddr_t ip;
80 memcpy(ip.data, buf, 4);
81 return ip;
85 ip_write( ipaddr_t ip, void* buf )
87 memcpy(buf, ip.data, 4);
98 ip_write32h( uint32_t ip, void* buf )
100 ipaddr_t addr = ip_seth(ip);