+ print(&resp, &from);
+ }
+ bytenetorder(&resp); /* this is not really necessary here */
+ if (sendto(sock, (char *)&resp, sizeof(struct tsp), 0,
+ &from, length) < 0) {
+ syslog(LOG_ERR, "sendto: %m");
+ exit(1);
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+/*
+ * Certain packets may arrive from this machine on ignored networks.
+ * These packets should be acknowledged.
+ */
+
+ignoreack()
+{
+ int length;
+ struct tsp resp;
+
+ length = sizeof(struct sockaddr_in);
+ switch(msgin.tsp_type) {
+
+ case TSP_TRACEON:
+ case TSP_TRACEOFF:
+ resp = msgin;
+ resp.tsp_type = TSP_ACK;
+ resp.tsp_vers = TSPVERSION;
+ (void)strcpy(resp.tsp_name, hostname);
+ if (trace) {
+ fprintf(fd, "Ignoreack: ");
+ print(&resp, &from);