X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/f6311fb6ab21020b5f64fc0f4582a0fcf4f4c9a6..80a4458bb5525e31ed16b7f4a6e9fe3da5ce9d30:/usr/src/sys/vax/if/if_en.c diff --git a/usr/src/sys/vax/if/if_en.c b/usr/src/sys/vax/if/if_en.c index 87ab21dd62..e31a3d8a0d 100644 --- a/usr/src/sys/vax/if/if_en.c +++ b/usr/src/sys/vax/if/if_en.c @@ -1,4 +1,4 @@ -/* if_en.c 4.45 82/03/30 */ +/* if_en.c 4.46 82/03/30 */ #include "en.h" @@ -376,16 +376,12 @@ COUNT(ENRINT); case ENPUP_IPTYPE: len = htons((u_short)endataaddr(en, off ? off + sizeof (u_short) : 0, struct ip *)->ip_len); - if (off) - len += sizeof (u_short); break; #endif #ifdef PUP case ENPUP_PUPTYPE: len = endataaddr(en, off ? off + sizeof (u_short) : 0, struct pup_header *)->pup_length; - if (off) - len -= sizeof (u_short); break; #endif @@ -393,6 +389,8 @@ COUNT(ENRINT); printf("en%d: unknown pkt type 0x%x\n", unit, en->en_type); goto setup; } + if (off) + len += sizeof (u_short); if (len == 0) goto setup;