Lines Matching refs:hp
143 struct hostent *hp = gethostbyname(optarg); in main() local
144 if (hp == 0) { in main()
150 memmove(&OMSG.rip_nets[0].n_dst, hp->h_addr, in main()
398 struct hostent *hp; in out() local
411 hp = gethostbyname(host); in out()
412 if (hp == 0) { in out()
416 memmove(&router.sin_addr, hp->h_addr, sizeof(router.sin_addr)); in out()
444 struct hostent *hp; in rip_input() local
451 hp = gethostbyaddr((char*)&from->sin_addr, in rip_input()
453 if (hp == 0) { in rip_input()
456 printf("%s (%s):", hp->h_name, in rip_input()
536 hp = gethostbyaddr((char*)&in, in rip_input()
538 if (hp != 0) in rip_input()
539 name = hp->h_name; in rip_input()
568 hp = 0; in rip_input()
570 hp = gethostbyaddr((char*)&in, sizeof(in), in rip_input()
573 (hp != 0) ? hp->h_name : inet_ntoa(in), in rip_input()