Lines Matching defs:magic
204 int magic; /* should be
247 int magic; /* Should be L2TP_TUNNEL_MAGIC */
293 if (!session /*|| session->magic != L2TP_SESSION_MAGIC*/) { \
296 "(" #sock "=%p) session=%p magic=%x\n", \
298 session, session ? session->magic : 0); \
305 if (!tunnel || tunnel->magic != L2TP_TUNNEL_MAGIC) { \
308 "(" #sock "=%p) tunnel=%p magic=%x\n", \
310 tunnel, tunnel ? tunnel->magic : 0); \
1502 if (tunnel->magic != L2TP_TUNNEL_MAGIC) {
1504 "( tunnel=%p magic=%x )\n",
1506 tunnel, tunnel->magic);
1561 if (tunnel->magic == L2TP_TUNNEL_MAGIC) {
1568 "( tunnel=%p magic=%x )\n",
1570 tunnel, tunnel->magic);
1705 if (tunnel->magic != L2TP_TUNNEL_MAGIC) {
1707 "( tunnel=%p magic=%x )\n",
1709 tunnel, tunnel->magic);
1729 tunnel->magic = L2TP_TUNNEL_MAGIC;
1916 session->magic = L2TP_SESSION_MAGIC;
2737 "session-count magic-ok\n");
2740 "dest-tid/sid state user-data-ok magic-ok\n");
2750 (tunnel->magic == L2TP_TUNNEL_MAGIC) ? "OK" : "BAD");
2758 if (tunnel->magic != L2TP_TUNNEL_MAGIC) {
2778 (session->magic == L2TP_SESSION_MAGIC) ?
2797 if (session->magic != L2TP_SESSION_MAGIC) {