2.) Keep histogram of input error packets.
SCCS-vsn: sys/netns/ns_error.c 6.4
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)ns_error.c 6.3 (Berkeley) %G%
+ * @(#)ns_error.c 6.4 (Berkeley) %G%
if (ns_errprintfs)
printf("ns_err_error(%x, %d, %d)\n", oip, type, param);
#endif
if (ns_errprintfs)
printf("ns_err_error(%x, %d, %d)\n", oip, type, param);
#endif
+ /*
+ * Don't Generate error packets in response to multicasts.
+ */
+ if (oip->idp_dna.x_host.c_host[0] & 1)
+ goto free;
+
ns_errstat.ns_es_error++;
/*
* Make sure that the old IDP packet had 30 bytes of data to return;
ns_errstat.ns_es_error++;
/*
* Make sure that the old IDP packet had 30 bytes of data to return;
ep = &(mtod(m, struct ns_epidp *)->ns_ep_errp);
type = ntohs(ep->ns_err_num);
param = ntohs(ep->ns_err_param);
ep = &(mtod(m, struct ns_epidp *)->ns_ep_errp);
type = ntohs(ep->ns_err_num);
param = ntohs(ep->ns_err_param);
+ ns_errstat.ns_es_inhist[ns_err_x(type)]++;