- log(3, session[s].ip, s, t, "ConfigReq accepted, sending as Ack\n");
- q = makeppp(b, p, l, t, s, PPPLCP);
- *q = ConfigAck;
- tunnelsend(b, l + (q - b), t);
- }
- else
- {
- // Already built a ConfigNak... send it
- log(3, session[s].ip, s, t, "Sending ConfigNak\n");
- tunnelsend(b, l + (q - b), t);
-
- log(3, session[s].ip, s, t, "Sending ConfigReq, requesting PAP login\n");
- q = makeppp(b, NULL, 0, t, s, PPPLCP);
- *q++ = ConfigReq;
- *(u8 *)(q++) = 3;
- *(u8 *)(q++) = 4;
- *(u16 *)(q += 2) = htons(0xC023);
- tunnelsend(b, l + (q - b), t);
+ q = makeppp(b, sizeof(b), p, l, t, s, PPPLCP);
+ if (!q) return;
+ response = *q = ConfigAck;