mirror of
https://github.com/pkoning2/decstuff.git
synced 2026-01-11 23:52:55 +00:00
Ignore some recoverable Ethernet error codes: packets lost
(no buffers); oversized packet.
This commit is contained in:
parent
3fe7c3a724
commit
33e100d8cb
@ -8,6 +8,8 @@
|
||||
#include "tzutil.h"
|
||||
|
||||
#define NOSUCH 5 /* Ethernet driver error code for "no packets pending" */
|
||||
#define DATERR 13 /* Some Ethernet packets were lost */
|
||||
#define MAGRLE 40 /* Oversized Ethernet packet */
|
||||
#define UU_DAT -14 /* Date/Time changer */
|
||||
#define UU_DET 7 /* Detach */
|
||||
#define JFLOCK 040000 /* Lock in memory flag */
|
||||
@ -178,8 +180,11 @@ static void * getntppkt (int ch2, void *buf, int len)
|
||||
setxrb (buf, len);
|
||||
xrb->xrci = ch2;
|
||||
RSTS$READ ();
|
||||
if (RSTS$FIRQB->firqb == NOSUCH) {
|
||||
/* No packets pending */
|
||||
/* Some errors are ignored: no packet pending, packets lost, oversized packet */
|
||||
if (RSTS$FIRQB->firqb == NOSUCH ||
|
||||
RSTS$FIRQB->firqb == DATERR ||
|
||||
RSTS$FIRQB->firqb == MAGRLE) {
|
||||
/* Report no packet */
|
||||
return NULL;
|
||||
}
|
||||
check ("ethernet receive");
|
||||
|
||||
BIN
ntp/ntp.tsk
BIN
ntp/ntp.tsk
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user