Deleted Added
full compact
19c19
< *
---
> *
21c21
< *
---
> *
28a29
> #include "vars.h"
132c133,136
< mfcs = mballoc(2, MB_HDLCOUT);
---
> if (DEV_IS_SYNC)
> mfcs = NULLBUFF;
> else
> mfcs = mballoc(2, MB_HDLCOUT);
175,180c179,186
< fcs = HdlcFcs(INITFCS, MBUF_CTOP(mhp), mhp->cnt);
< fcs = HdlcFcs(fcs, MBUF_CTOP(bp), bp->cnt);
< fcs = ~fcs;
< cp = MBUF_CTOP(mfcs);
< *cp++ = fcs & 0377; /* Low byte first!! */
< *cp++ = fcs >> 8;
---
> if (!DEV_IS_SYNC) {
> fcs = HdlcFcs(INITFCS, MBUF_CTOP(mhp), mhp->cnt);
> fcs = HdlcFcs(fcs, MBUF_CTOP(bp), bp->cnt);
> fcs = ~fcs;
> cp = MBUF_CTOP(mfcs);
> *cp++ = fcs & 0377; /* Low byte first!! */
> *cp++ = fcs >> 8;
> }
187c193,196
< AsyncOutput(pri, mhp, proto);
---
> if (DEV_IS_SYNC)
> ModemOutput(pri, mhp);
> else
> AsyncOutput(pri, mhp, proto);
213a223,225
> if (bp == NULLBUFF) {
> break;
> }
298c310,313
< fcs = HdlcFcs(INITFCS, MBUF_CTOP(bp), bp->cnt);
---
> if (DEV_IS_SYNC)
> fcs = GOODFCS;
> else
> fcs = HdlcFcs(INITFCS, MBUF_CTOP(bp), bp->cnt);
313c328,329
< bp->cnt -= 2; /* discard FCS part */
---
> if (!DEV_IS_SYNC)
> bp->cnt -= 2; /* discard FCS part */