projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trailer's handled wrong on pup's
[unix-history]
/
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
87ab21d
..
e31a3d8
100644
(file)
--- 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.4
5
82/03/30 */
+/* if_en.c 4.4
6
82/03/30 */
#include "en.h"
#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);
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;
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
break;
#endif
@@
-393,6
+389,8
@@
COUNT(ENRINT);
printf("en%d: unknown pkt type 0x%x\n", unit, en->en_type);
goto setup;
}
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;
if (len == 0)
goto setup;