- if (tracepackets > 0) {
- if (ns_netof(idp->idp_sna) != ns_netof(idp->idp_dna)) {
- fprintf(ftrace,
- "XNSrouted: net of interface (%d) ",
- ns_netof(idp->idp_dna));
- fprintf(ftrace,
- "!= net on ether (%d)!\n", ns_netof(idp->idp_sna));
- }
- if (fromlen != sizeof (struct sockaddr_ns))
- fprintf(ftrace, "fromlen is %d instead of %d\n",
- fromlen, sizeof (struct sockaddr_ns));
+
+ if (noteremoterequests && ns_netof(idp->idp_sna) &&
+ ns_netof(idp->idp_sna) != ns_netof(idp->idp_dna)) {
+ syslog(LOG_ERR, "net of interface (%d) != net on ether (%d)!\n", ns_netof(idp->idp_dna), ns_netof(idp->idp_sna));