- if (if_ubainit(&sc->acc_ifuba, ui->ui_ubanum,
- sizeof(struct imp_leader), (int)btop(IMP_MTU)) == 0) {
+ if (unit >= NACC || (ui = accinfo[unit]) == 0 || ui->ui_alive == 0) {
+ printf("acc%d: not alive\n", unit);
+ return (0);
+ }
+ sc = &acc_softc[unit];
+ /*
+ * Header length is 0 since we have to passs
+ * the IMP leader up to the protocol interpretation
+ * routines. If we had the header length as
+ * sizeof(struct imp_leader), then the if_ routines
+ * would asssume we handle it on input and output.
+ */
+ if (if_ubainit(&sc->acc_ifuba, ui->ui_ubanum, 0, btoc(IMP_MTU)) == 0) {