Workaround for fishy situation that caused checksum on outgoing packets
to be broken in certain cases. (Seemingly when 2 short packets sent back-to-back.) Buffer alignment seems to fix this ...
This commit is contained in:
parent
3bb4d191d7
commit
4ab7f34ea0
1 changed files with 3 additions and 3 deletions
|
@ -806,10 +806,10 @@ fxp_t *fp;
|
|||
assert(first_time);
|
||||
first_time= 0;
|
||||
|
||||
#if 0
|
||||
assert(tot_bufsize <= buffer);
|
||||
#endif
|
||||
#define BUFALIGN 4096
|
||||
assert(tot_bufsize <= sizeof(buffer)-BUFALIGN);
|
||||
buf= (phys_bytes)buffer;
|
||||
buf += BUFALIGN - (buf % BUFALIGN);
|
||||
}
|
||||
|
||||
fp->fxp_rx_buf= (struct rfd *)buf;
|
||||
|
|
Loading…
Reference in a new issue