Lines Matching refs:tsp
50 struct tsp *tsp = (struct tsp *)bp; in timed_print() local
54 if (endof(tsp->tsp_type) > snapend) { in timed_print()
58 if (tsp->tsp_type < TSPTYPENUMBER) in timed_print()
59 printf("TSP_%s", tsptype[tsp->tsp_type]); in timed_print()
61 printf("(tsp_type %#x)", tsp->tsp_type); in timed_print()
63 if (endof(tsp->tsp_vers) > snapend) { in timed_print()
67 printf(" vers %d", tsp->tsp_vers); in timed_print()
69 if (endof(tsp->tsp_seq) > snapend) { in timed_print()
73 printf(" seq %d", tsp->tsp_seq); in timed_print()
75 if (tsp->tsp_type == TSP_LOOP) { in timed_print()
76 if (endof(tsp->tsp_hopcnt) > snapend) { in timed_print()
80 printf(" hopcnt %d", tsp->tsp_hopcnt); in timed_print()
81 } else if (tsp->tsp_type == TSP_SETTIME || in timed_print()
82 tsp->tsp_type == TSP_ADJTIME || in timed_print()
83 tsp->tsp_type == TSP_SETDATE || in timed_print()
84 tsp->tsp_type == TSP_SETDATEREQ) { in timed_print()
85 if (endof(tsp->tsp_time) > snapend) { in timed_print()
89 sec = EXTRACT_32BITS(&tsp->tsp_time.tv_sec); in timed_print()
90 usec = EXTRACT_32BITS(&tsp->tsp_time.tv_usec); in timed_print()
104 end = memchr(tsp->tsp_name, '\0', snapend - (u_char *)tsp->tsp_name); in timed_print()
109 fwrite(tsp->tsp_name, end - (u_char *)tsp->tsp_name, 1, stdout); in timed_print()