- dp = om->b_rptr;
- if (PPP_ADDRESS(dp) == PPP_ALLSTATIONS
- && PPP_CONTROL(dp) == PPP_UI)
- dp += 2;
- if ((*dp & 1) == 0)
- ++dp;
- /* dp is now pointing at the last byte of the ppp protocol field */
- offset = 3 - ((unsigned)dp & 3);
- if (offset > 0) {
- dp = om->b_wptr;
- do {
- --dp;
- dp[offset] = dp[0];
- } while (dp > om->b_rptr);
- om->b_rptr += offset;
- om->b_wptr += offset;