+ 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);
+ }