+ else if (*p == IdentRequest)
+ {
+ *p = CodeRej;
+ if (l > MAXCONTROL)
+ {
+ LOG(1, 0, s, t, "Truncated Ident Packet (length=%d) to 1400 bytes\n", l);
+ l = 1400;
+ }
+ q = makeppp(b, sizeof(b), p, l, t, s, PPPLCP);
+ if (!q)
+ {
+ LOG(3, session[s].ip, s, t, "Failed to create IdentRej.\n");
+ return;
+ }
+ LOG_HEX(5, "LCPIdentRej", q, l + 4);
+ tunnelsend(b, 12 + 4 + l, t);
+ }