-
-#ifdef ADD_ERRORS
- /*
- * This section will adds random errors to
- * outgoing packets.
- */
-
- if (out_error_limit == -1) /* Initial time through */
- {
- out_error_limit = rand() % out_error_max_sep;
- IOLog("Introducing outgoing random error after %d more packets\n",
- out_error_limit);
- }
-
- if (out_error_pkt_count >= out_error_limit)
- {
- sc->sc_outfcs ^= 0x99; /* Munge with some noise */
- out_error_pkt_count = 0;
- out_error_limit = rand() % out_error_max_sep;
- IOLog("Introducing outgoing random error after %d more packets\n",
- out_error_limit);
- }
- else
- ++out_error_pkt_count;
-
-
-#endif /* ADD_ERRORS */
-
- cp = mtod(m, u_char *) + nb_size(m);
- nb_grow_bot(m, PPP_FCSLEN);
+
+ cp = mtod(m, u_char *) + NB_SIZE(m);
+ NB_GROW_BOT(m, PPP_FCSLEN);