/external/toybox/toys/pending/ |
arping.c | 52 static void get_interface(char *interface, int *ifindex, uint32_t *oip, 66 if (oip) { 69 *oip = ntohl(ip->sin_addr.s_addr); 249 uint32_t oip; local 255 get_interface(TT.iface, NULL, &oip, NULL); 256 src_addr.s_addr = htonl(oip);
|
dhcp.c | 281 static int get_interface( char *interface, int *ifindex, uint32_t *oip, uint8_t *mac) 294 if (oip) { 298 *oip = ntohl(ip->sin_addr.s_addr); [all...] |
dhcpd.c | 359 static int get_interface(const char *interface, int *ifindex, void *oip, 378 uint8_t *oip6 = (uint8_t*)oip; 405 uint32_t *oip4 = (uint32_t*)oip; [all...] |
/external/tcpdump/ |
print-icmp.c | 337 const struct ip *oip; local 379 oip = &dp->icmp_ip; 380 hlen = IP_HL(oip) * 4; 381 ouh = (struct udphdr *)(((u_char *)oip) + hlen); 384 switch (oip->ip_p) { 389 ipaddr_string(ndo, &oip->ip_dst), 396 ipaddr_string(ndo, &oip->ip_dst), 403 ipaddr_string(ndo, &oip->ip_dst), 404 oip->ip_p, dport);
|
print-icmp6.c | 894 const struct ip6_hdr *oip; local 902 oip = (struct ip6_hdr *)(dp + 1); 937 ND_TCHECK(oip->ip6_dst); 944 ND_PRINT((ndo," %s",ip6addr_string(ndo, &oip->ip6_dst))); 948 ip6addr_string(ndo, &oip->ip6_dst), 949 ip6addr_string(ndo, &oip->ip6_src))); 952 if ((ouh = get_upperlayer(ndo, (u_char *)oip, &prot)) 960 ip6addr_string(ndo, &oip->ip6_dst), 965 ip6addr_string(ndo, &oip->ip6_dst), 970 ip6addr_string(ndo, &oip->ip6_dst) [all...] |