Dan@dna.lth.se (Dan Oscarsson) (02/25/90)
Here is a new patch to uab. It fixes an error where a struct contains 3 bytes and sizeof returns 4. Dan ----------------------------patch---------------------------- Problem: UAB missing first byte from the received long DDP packet *** ethertalk.c.org Fri Feb 23 10:47:41 1990 --- ethertalk.c Fri Feb 23 10:49:39 1990 *************** *** 304,310 **** iov[0].iov_base = (caddr_t)&ea; iov[0].iov_len = sizeof(ea); iov[1].iov_base = (caddr_t)⪅ ! iov[1].iov_len = sizeof(lap); iov[2].iov_base = (caddr_t)rbuf; iov[2].iov_len = sizeof(rbuf); if ((cc = pi_readv(etph, iov, 3)) < 0) { --- 304,310 ---- iov[0].iov_base = (caddr_t)&ea; iov[0].iov_len = sizeof(ea); iov[1].iov_base = (caddr_t)⪅ ! iov[1].iov_len = lapSize; iov[2].iov_base = (caddr_t)rbuf; iov[2].iov_len = sizeof(rbuf); if ((cc = pi_readv(etph, iov, 3)) < 0) {