Lines Matching refs:hostName
67 int ltp_run_ping_tests(char *hostName);
68 int ltp_run_traceroute_tests(char *hostName);
73 void ltp_traceroute(struct sockaddr_in *rawTraceAddr, char *hostName, int pid);
96 char hostName[MAX_MSG_LEN], in main() local
111 strncpy(hostName, argv[1], MAX_MSG_LEN); in main()
115 hostEntry = gethostbyname(hostName); in main()
118 printf("%s: unknown host passed'%s' \n", progName, hostName); in main()
201 progName, hostName, in main()
258 printf("%s UDP Socket not open for send \n", hostName); in main()
274 printf("%s TCP Socket not open for send \n", hostName); in main()
296 ltp_run_ping_tests(hostName); in main()
306 int ltp_run_traceroute_tests(char *hostName) in ltp_run_traceroute_tests() argument
316 hostEntry = gethostbyname(hostName); in ltp_run_traceroute_tests()
324 ltp_traceroute(&rawTraceAddr, hostName, pid); in ltp_run_traceroute_tests()
333 int ltp_run_ping_tests(char *hostName) in ltp_run_ping_tests() argument
343 hostEntry = gethostbyname(hostName); in ltp_run_ping_tests()
352 network_listener(hostName, pid); in ltp_run_ping_tests()
365 int network_listener(char *hostName, int pid) in network_listener() argument
376 printf("%s: Error: cannot open RAW socket \n", hostName); in network_listener()
394 printf("%s : cannot receive data\n", hostName); in network_listener()
560 void ltp_traceroute(struct sockaddr_in *rawTraceAddr, char *hostName, int pid) in ltp_traceroute() argument
639 printf("%s : data send complete...\n", hostName); in ltp_traceroute()