Lines Matching full:ttl
104 int check_signal(int s, char* ip, unsigned char* ttl, unsigned short* port) { in check_signal() argument
112 unsigned char ttl; in check_signal() member
144 printf("Didn't get ttl! len=%d level=%d type=%d\n", in check_signal()
153 *ttl = ctl.ttl; in check_signal()
160 char* ip, char* ttl, unsigned short *port) {
177 *ttl = iph->ip_ttl;
292 // sending ttl.. in send_stuff()
313 unsigned char ttl = 0; in main() local
396 ip, &ttl, &port)) { in main()
398 printf("Got signal from %s:%d TTL=%d\n", in main()
399 ip, port, ttl); in main()
417 if (ttlnew != ttl || strcmp(ipnew, ip) != 0 || in main()
421 ttl = ttlnew; in main()
424 printf("Got signal from %s:%d TTL=%d\n", in main()
425 ip, port, ttl); in main()
429 printf("Sending ttl (%d)...\n", ttl); in main()
430 send_stuff(s, sip, ip, port, 69 + (TTLSENT-ttl)); in main()