allow compilation with BGP unset
[l2tpns.git] / l2tpns.h
1 // L2TPNS Global Stuff
2 // $Id: l2tpns.h,v 1.46 2004-12-13 02:27:31 bodea Exp $
3
4 #ifndef __L2TPNS_H__
5 #define __L2TPNS_H__
6
7 #include <netinet/in.h>
8 #include <execinfo.h>
9 #include <stdio.h>
10 #include <signal.h>
11 #include <stdlib.h>
12 #include <netinet/in.h>
13 #include <sys/socket.h>
14 #include <arpa/inet.h>
15 #include <sys/types.h>
16 #include <libcli.h>
17
18 #define VERSION "2.0.13"
19
20 // Limits
21 #define MAXTUNNEL 500 // could be up to 65535
22 #define MAXSESSION 50000 // could be up to 65535
23 #define MAXTBFS 6000 // Maximum token bucket filters. Might need up to 2 * session.
24
25 #define RADIUS_SHIFT 5
26 #define RADIUS_MASK ((unsigned short)(((unsigned short)~0) >> (16 - RADIUS_SHIFT)))
27 #define MAXRADIUS ((unsigned long)(1L << RADIUS_SHIFT) * 255)
28
29 #define T_UNDEF (0xffff) // A tunnel ID that won't ever be used. Mark session as undefined.
30 #define T_FREE (0) // A tunnel ID that won't ever be used. Mark session as free.
31
32 #define MAXCONTROL 1000 // max length control message we ever send...
33 #define MAXETHER (1500+18) // max packet we try sending to tun
34 #define MAXTEL 96 // telephone number
35 #define MAXPLUGINS 20 // maximum number of plugins to load
36 #define MAXRADSERVER 10 // max radius servers
37 #define MAXROUTE 10 // max static routes per session
38 #define MAXIPPOOL 131072 // max number of ip addresses in pool
39 #define RINGBUFFER_SIZE 10000 // Number of ringbuffer entries to allocate
40 #define MAX_LOG_LENGTH 512 // Maximum size of log message
41 #define ECHO_TIMEOUT 60 // Time between last packet sent and LCP ECHO generation
42 #define IDLE_TIMEOUT 240 // Time between last packet sent and LCP ECHO generation
43 #define BUSY_WAIT_TIME 3000 // 5 minutes in 1/10th seconds to wait for radius to cleanup on shutdown
44
45 // Constants
46 #ifndef ETCDIR
47 #define ETCDIR "/etc/l2tpns"
48 #endif
49
50 #ifndef LIBDIR
51 #define LIBDIR "/usr/lib/l2tpns"
52 #endif
53
54 #ifndef STATEDIR
55 #define STATEDIR "/var/lib/l2tpns"
56 #endif
57
58 #ifndef PLUGINDIR
59 #define PLUGINDIR LIBDIR // Plugins
60 #endif
61
62 #ifndef PLUGINCONF
63 #define PLUGINCONF ETCDIR // Plugin config dir
64 #endif
65
66 #ifndef FLASHDIR
67 #define FLASHDIR ETCDIR
68 #endif
69
70 #ifndef DATADIR
71 #define DATADIR STATEDIR
72 #endif
73
74 #define TUNDEVICE "/dev/net/tun"
75 #define STATEFILE DATADIR "/state.dump" // State dump file
76 #define CONFIGFILE FLASHDIR "/startup-config" // Configuration file
77 #define CLIUSERS FLASHDIR "/users" // CLI Users file
78 #define IPPOOLFILE FLASHDIR "/ip_pool" // Address pool configuration
79 #define ACCT_TIME 3000 // 5 minute accounting interval
80 #define ACCT_SHUT_TIME 600 // 1 minute for counters of shutdown sessions
81 #define L2TPPORT 1701 // L2TP port
82 #define RADPORT 1645 // old radius port...
83 #define PKTARP 0x0806 // ARP packet type
84 #define PKTIP 0x0800 // IP packet type
85 #define PSEUDOMAC 0x0200 // pseudo MAC prefix (local significant MAC)
86 #define PPPPAP 0xC023
87 #define PPPCHAP 0xC223
88 #define PPPLCP 0xC021
89 #define PPPIPCP 0x8021
90 #define PPPCCP 0x80FD
91 #define PPPIP 0x0021
92 #define PPPMP 0x003D
93 #define MIN_IP_SIZE 0x19
94 enum
95 {
96 ConfigReq = 1,
97 ConfigAck,
98 ConfigNak,
99 ConfigRej,
100 TerminateReq,
101 TerminateAck,
102 CodeRej,
103 ProtocolRej,
104 EchoReq,
105 EchoReply,
106 DiscardRequest,
107 IdentRequest
108 };
109
110 // Types
111 typedef unsigned short u16;
112 typedef unsigned int u32;
113 typedef unsigned long long u64;
114 typedef unsigned char u8;
115 typedef u32 ipt;
116 typedef u16 portt;
117 typedef u16 sessionidt;
118 typedef u16 tunnelidt;
119 typedef u32 clockt;
120 typedef u8 hasht[16];
121
122 // CLI actions
123 struct cli_session_actions {
124 char action;
125 ipt snoop_ip;
126 u16 snoop_port;
127 int throttle_in;
128 int throttle_out;
129 int filter_in;
130 int filter_out;
131 };
132
133 #define CLI_SESS_KILL 0x01
134 #define CLI_SESS_SNOOP 0x02
135 #define CLI_SESS_NOSNOOP 0x04
136 #define CLI_SESS_THROTTLE 0x08
137 #define CLI_SESS_NOTHROTTLE 0x10
138 #define CLI_SESS_FILTER 0x20
139 #define CLI_SESS_NOFILTER 0x40
140
141 struct cli_tunnel_actions {
142 char action;
143 };
144
145 #define CLI_TUN_KILL 0x01
146
147 // dump header: update number if internal format changes
148 #define DUMP_MAGIC "L2TPNS#" VERSION "#"
149
150 // structures
151 typedef struct // route
152 {
153 ipt ip;
154 ipt mask;
155 }
156 routet;
157
158 typedef struct controls // control message
159 {
160 struct controls *next; // next in queue
161 u16 length; // length
162 u8 buf[MAXCONTROL];
163 }
164 controlt;
165
166 typedef struct
167 {
168 sessionidt next; // next session in linked list
169 sessionidt far; // far end session ID
170 tunnelidt tunnel; // near end tunnel ID
171 ipt ip; // IP of session set by RADIUS response (host byte order).
172 int ip_pool_index; // index to IP pool
173 unsigned long unique_id; // unique session id
174 u16 nr; // next receive
175 u16 ns; // next send
176 u32 magic; // ppp magic number
177 u32 cin, cout; // byte counts
178 u32 pin, pout; // packet counts
179 u32 total_cin; // This counter is never reset while a session is open
180 u32 total_cout; // This counter is never reset while a session is open
181 u32 id; // session id
182 u16 throttle_in; // upstream throttle rate (kbps)
183 u16 throttle_out; // downstream throttle rate
184 clockt opened; // when started
185 clockt die; // being closed, when to finally free
186 time_t last_packet; // Last packet from the user (used for idle timeouts)
187 ipt dns1, dns2; // DNS servers
188 routet route[MAXROUTE]; // static routes
189 u16 radius; // which radius session is being used (0 for not waiting on authentication)
190 u16 mru; // maximum receive unit
191 u16 tbf_in; // filter bucket for throttling in from the user.
192 u16 tbf_out; // filter bucket for throttling out to the user.
193 u8 l2tp_flags; // various bit flags from the ICCN on the l2tp tunnel.
194 u8 reserved_old_snoop; // No longer used - remove at some time
195 u8 walled_garden; // is this session gardened?
196 u8 flags1; // additional flags (currently unused);
197 char random_vector[MAXTEL];
198 int random_vector_length;
199 char user[129]; // user (needed in seesion for radius stop messages) (can we reduce this? --mo)
200 char called[MAXTEL]; // called number
201 char calling[MAXTEL]; // calling number
202 u32 tx_connect_speed;
203 u32 rx_connect_speed;
204 u32 flags; // Various session flags.
205 ipt snoop_ip; // Interception destination IP
206 u16 snoop_port; // Interception destination port
207 u16 sid; // near end session id.
208 u8 filter_in; // input filter index (to ip_filters[N-1]; 0 if none)
209 u8 filter_out; // output filter index
210 char reserved[18]; // Space to expand structure without changing HB_VERSION
211 }
212 sessiont;
213
214 #define SF_IPCP_ACKED 1 // Has this session seen an IPCP Ack?
215 #define SF_LCP_ACKED 2 // LCP negotiated
216 #define SF_CCP_ACKED 4 // CCP negotiated
217
218 typedef struct
219 {
220 u32 cin;
221 u32 cout;
222 } sessioncountt;
223
224 #define SESSIONPFC 1 // PFC negotiated flags
225 #define SESSIONACFC 2 // ACFC negotiated flags
226
227 // 168 bytes per tunnel
228 typedef struct
229 {
230 tunnelidt far; // far end tunnel ID
231 ipt ip; // Ip for far end
232 portt port; // port for far end
233 u16 window; // Rx window
234 u16 nr; // next receive
235 u16 ns; // next send
236 int state; // current state (tunnelstate enum)
237 clockt last; // when last control message sent (used for resend timeout)
238 clockt retry; // when to try resenting pending control
239 clockt die; // being closed, when to finally free
240 clockt lastrec; // when the last control message was received
241 char hostname[128]; // tunnel hostname
242 char vendor[128]; // LAC vendor
243 u8 try; // number of retrys on a control message
244 u16 controlc; // outstaind messages in queue
245 controlt *controls; // oldest message
246 controlt *controle; // newest message
247 }
248 tunnelt;
249
250 // 180 bytes per radius session
251 typedef struct // outstanding RADIUS requests
252 {
253 sessionidt session; // which session this applies to
254 hasht auth; // request authenticator
255 clockt retry; // when to try next
256 char calling[MAXTEL]; // calling number
257 char pass[129]; // password
258 u8 id; // ID for PPP response
259 u8 try; // which try we are on
260 u8 state; // state of radius requests
261 u8 chap; // set if CHAP used (is CHAP identifier)
262 }
263 radiust;
264
265 typedef struct
266 {
267 ipt address; // Host byte order..
268 char assigned; // 1 if assigned, 0 if free
269 sessionidt session;
270 clockt last; // last used
271 char user[129]; // user (try to have ip addresses persistent)
272 }
273 ippoolt;
274
275 #ifdef RINGBUFFER
276 struct Tringbuffer
277 {
278 struct {
279 char level;
280 sessionidt session;
281 tunnelidt tunnel;
282 char message[MAX_LOG_LENGTH];
283 } buffer[RINGBUFFER_SIZE];
284 int head;
285 int tail;
286 };
287 #endif
288
289 /*
290 * Possible tunnel states
291 * TUNNELFREE -> TUNNELOPEN -> TUNNELDIE -> TUNNELFREE
292 */
293 enum
294 {
295 TUNNELFREE, // Not in use
296 TUNNELOPEN, // Active tunnel
297 TUNNELDIE, // Currently closing
298 TUNNELOPENING, // Busy opening
299 TUNNELUNDEF, // Undefined
300 };
301
302 enum
303 {
304 RADIUSNULL, // Not in use
305 RADIUSCHAP, // sending CHAP down PPP
306 RADIUSAUTH, // sending auth to RADIUS server
307 RADIUSIPCP, // sending IPCP to end user
308 RADIUSSTART, // sending start accounting to RADIUS server
309 RADIUSSTOP, // sending stop accounting to RADIUS server
310 RADIUSWAIT, // waiting timeout before available, in case delayed replies
311 RADIUSDEAD, // errored while talking to radius server.
312 };
313
314 struct Tstats
315 {
316 time_t start_time;
317 time_t last_reset;
318
319 unsigned long tun_rx_packets;
320 unsigned long tun_tx_packets;
321 unsigned long tun_rx_bytes;
322 unsigned long tun_tx_bytes;
323 unsigned long tun_rx_errors;
324 unsigned long tun_tx_errors;
325
326 unsigned long tunnel_rx_packets;
327 unsigned long tunnel_tx_packets;
328 unsigned long tunnel_rx_bytes;
329 unsigned long tunnel_tx_bytes;
330 unsigned long tunnel_rx_errors;
331 unsigned long tunnel_tx_errors;
332
333 unsigned long tunnel_retries;
334 unsigned long radius_retries;
335
336 unsigned long arp_sent;
337
338 unsigned long packets_snooped;
339
340 unsigned long tunnel_created;
341 unsigned long session_created;
342 unsigned long tunnel_timeout;
343 unsigned long session_timeout;
344 unsigned long radius_timeout;
345 unsigned long radius_overflow;
346 unsigned long tunnel_overflow;
347 unsigned long session_overflow;
348
349 unsigned long ip_allocated;
350 unsigned long ip_freed;
351
352 unsigned long c_forwarded;
353 unsigned long recv_forward;
354 #ifdef STATISTICS
355 unsigned long call_processtun;
356 unsigned long call_processipout;
357 unsigned long call_processudp;
358 unsigned long call_sessionbyip;
359 unsigned long call_sessionbyuser;
360 unsigned long call_sendarp;
361 unsigned long call_sendipcp;
362 unsigned long call_tunnelsend;
363 unsigned long call_sessionkill;
364 unsigned long call_sessionshutdown;
365 unsigned long call_tunnelkill;
366 unsigned long call_tunnelshutdown;
367 unsigned long call_assign_ip_address;
368 unsigned long call_free_ip_address;
369 unsigned long call_dump_acct_info;
370 unsigned long call_sessionsetup;
371 unsigned long call_processpap;
372 unsigned long call_processchap;
373 unsigned long call_processlcp;
374 unsigned long call_processipcp;
375 unsigned long call_processipin;
376 unsigned long call_processccp;
377 unsigned long call_sendchap;
378 unsigned long call_processrad;
379 unsigned long call_radiussend;
380 unsigned long call_radiusretry;
381 #endif
382 };
383
384 #ifdef STATISTICS
385
386 #ifdef STAT_CALLS
387 #define CSTAT(x) STAT(x)
388 #else
389 #define CSTAT(x)
390 #endif
391
392 #define STAT(x) (_statistics->x++)
393 #define INC_STAT(x,y) (_statistics->x += (y))
394 #define GET_STAT(x) (_statistics->x)
395 #define SET_STAT(x, y) (_statistics->x = (y))
396 #else
397 #define CSTAT(x)
398 #define STAT(x)
399 #define INC_STAT(x,y)
400 #define GET_STAT(x) 0
401 #define SET_STAT(x, y)
402 #endif
403
404 typedef struct
405 {
406 int debug; // debugging level
407 time_t start_time; // time when l2tpns was started
408 char bandwidth[256]; // current bandwidth
409 char pid_file[256]; // file to write PID to on startup
410 int wrote_pid;
411 clockt current_time; // 1/10ths of a second since the process started.
412 // means that we can only run a given process
413 // for 13 years without re-starting!
414
415 char config_file[128];
416 int reload_config; // flag to re-read config (set by cli)
417 int cleanup_interval; // interval between regular cleanups (in seconds)
418 int multi_read_count; // amount of packets to read per fd in processing loop
419
420 char tundevice[10]; // tun device name
421 char log_filename[128];
422 char l2tpsecret[64];
423
424 char radiussecret[64];
425 int radius_accounting;
426 ipt radiusserver[MAXRADSERVER]; // radius servers
427 u16 radiusport[MAXRADSERVER]; // radius base ports
428 u8 numradiusservers; // radius server count
429 short num_radfds; // Number of radius filehandles allocated
430
431 ipt default_dns1, default_dns2;
432
433 unsigned long rl_rate; // default throttle rate
434 int num_tbfs; // number of throttle buckets
435
436 int save_state;
437 char accounting_dir[128];
438 ipt bind_address;
439 ipt peer_address;
440 int send_garp; // Set to true to garp for vip address on startup
441
442 int target_uid;
443 int dump_speed;
444 char plugins[64][MAXPLUGINS];
445 char old_plugins[64][MAXPLUGINS];
446
447 int next_tbf; // Next HTB id available to use
448 int scheduler_fifo; // If the system has multiple CPUs, use FIFO scheduling policy for this process.
449 int lock_pages; // Lock pages into memory.
450 int icmp_rate; // Max number of ICMP unreachable per second to send>
451
452 u32 cluster_address; // Multicast address of cluster.
453 // Send to this address to have everyone hear.
454 char cluster_interface[64]; // Which interface to listen for multicast on.
455 int cluster_iam_master; // Are we the cluster master???
456 int cluster_iam_uptodate; // Set if we've got a full set of state from the master.
457 u32 cluster_master_address; // The network address of the cluster master.
458 // Zero if i am the cluster master.
459 int cluster_seq_number; // Sequence number of the next heartbeat we'll send out
460 // (or the seq number we're next expecting if we're a slave).
461 int cluster_undefined_sessions; // How many sessions we're yet to receive from the master.
462 int cluster_undefined_tunnels; // How many tunnels we're yet to receive from the master.
463 int cluster_highest_sessionid;
464 int cluster_highest_tunnelid;
465 clockt cluster_last_hb; // Last time we saw a heartbeat from the master.
466 int cluster_num_changes; // Number of changes queued.
467
468 int cluster_hb_interval; // How often to send a heartbeat.
469 int cluster_hb_timeout; // How many missed heartbeats trigger an election.
470 u64 cluster_table_version; // # state changes processed by cluster
471
472 #ifdef BGP
473 #define BGP_NUM_PEERS 2
474 u16 as_number;
475 struct {
476 char name[64];
477 u16 as;
478 int keepalive;
479 int hold;
480 } neighbour[BGP_NUM_PEERS];
481 #endif
482 } configt;
483
484 enum config_typet { INT, STRING, UNSIGNED_LONG, SHORT, BOOL, IP, MAC };
485 typedef struct
486 {
487 char *key;
488 int offset;
489 int size;
490 enum config_typet type;
491 } config_descriptt;
492
493 typedef struct
494 {
495 u8 op; // operation
496 #define FILTER_PORT_OP_NONE 0 // all ports match
497 #define FILTER_PORT_OP_EQ 1
498 #define FILTER_PORT_OP_NEQ 2
499 #define FILTER_PORT_OP_GT 3
500 #define FILTER_PORT_OP_LT 4
501 #define FILTER_PORT_OP_RANGE 5
502 portt port; // port (host byte order)
503 portt port2; // range
504 } ip_filter_portt;
505
506 typedef struct
507 {
508 int action; // permit/deny
509 #define FILTER_ACTION_DENY 1
510 #define FILTER_ACTION_PERMIT 2
511 u8 proto; // protocol: IPPROTO_* (netinet/in.h)
512 ipt src_ip; // source ip (network byte order)
513 ipt src_wild;
514 ip_filter_portt src_ports;
515 ipt dst_ip; // dest ip
516 ipt dst_wild;
517 ip_filter_portt dst_ports;
518 u8 frag; // apply to non-initial fragments
519 u8 tcp_flag_op; // match type: any, all, established
520 #define FILTER_FLAG_OP_ANY 1
521 #define FILTER_FLAG_OP_ALL 2
522 #define FILTER_FLAG_OP_EST 3
523 u8 tcp_sflags; // flags set
524 u8 tcp_cflags; // flags clear
525 u32 counter; // match count
526 } ip_filter_rulet;
527
528 #define TCP_FLAG_FIN 0x01
529 #define TCP_FLAG_SYN 0x02
530 #define TCP_FLAG_RST 0x04
531 #define TCP_FLAG_PSH 0x08
532 #define TCP_FLAG_ACK 0x10
533 #define TCP_FLAG_URG 0x20
534
535 #define MAXFILTER 32
536 #define MAXFILTER_RULES 32
537 typedef struct
538 {
539 char name[32]; // ACL name
540 int extended; // type: 0 = standard, 1 = extended
541 ip_filter_rulet rules[MAXFILTER_RULES];
542 int used; // session ref count
543 } ip_filtert;
544
545 // arp.c
546 void sendarp(int ifr_idx, const unsigned char* mac, ipt ip);
547
548
549 // ppp.c
550 void processpap(tunnelidt t, sessionidt s, u8 * p, u16 l);
551 void processchap(tunnelidt t, sessionidt s, u8 * p, u16 l);
552 void processlcp(tunnelidt t, sessionidt s, u8 * p, u16 l);
553 void processipcp(tunnelidt t, sessionidt s, u8 * p, u16 l);
554 void processipin(tunnelidt t, sessionidt s, u8 * p, u16 l);
555 void processccp(tunnelidt t, sessionidt s, u8 * p, u16 l);
556 void sendchap(tunnelidt t, sessionidt s);
557 u8 *makeppp(u8 * b, int size, u8 * p, int l, tunnelidt t, sessionidt s, u16 mtype);
558 void initlcp(tunnelidt t, sessionidt s);
559 void send_ipin(sessionidt s, u8 * buf, int len);
560
561
562 // radius.c
563 void initrad(void);
564 void radiussend(u16 r, u8 state);
565 void processrad(u8 *buf, int len, char socket_index);
566 void radiusretry(u16 r);
567 u16 radiusnew(sessionidt s);
568 void radiusclear(u16 r, sessionidt s);
569
570
571 // l2tpns.c
572 clockt backoff(u8 try);
573 sessionidt sessionbyip(ipt ip);
574 sessionidt sessionbyuser(char *username);
575 void sessionshutdown(sessionidt s, char *reason);
576 void send_garp(ipt ip);
577 void tunnelsend(u8 * buf, u16 l, tunnelidt t);
578 void sendipcp(tunnelidt t, sessionidt s);
579 void processudp(u8 * buf, int len, struct sockaddr_in *addr);
580 void snoop_send_packet(char *packet, u16 size, ipt destination, u16 port);
581 int ip_filter(u8 *buf, int len, u8 filter);
582 int cmd_show_ipcache(struct cli_def *cli, char *command, char **argv, int argc);
583 int cmd_show_hist_idle(struct cli_def *cli, char *command, char **argv, int argc);
584 int cmd_show_hist_open(struct cli_def *cli, char *command, char **argv, int argc);
585
586 #undef LOG
587 #undef LOG_HEX
588 #define LOG(D, s, t, f, ...) ({ if (D <= config->debug) _log(D, s, t, f, ## __VA_ARGS__); })
589 #define LOG_HEX(D, t, d, s) ({ if (D <= config->debug) _log_hex(D, t, d, s); })
590
591 void _log(int level, sessionidt s, tunnelidt t, const char *format, ...) __attribute__((format (printf, 4, 5)));
592 void _log_hex(int level, const char *title, const char *data, int maxsize);
593
594 int sessionsetup(tunnelidt t, sessionidt s);
595 int run_plugins(int plugin_type, void *data);
596 void rebuild_address_pool(void);
597 void throttle_session(sessionidt s, int rate_in, int rate_out);
598 int load_session(sessionidt, sessiont *);
599 void become_master(void); // We're the master; kick off any required master initializations.
600
601
602 // cli.c
603 void init_cli(char *hostname);
604 void cli_do_file(FILE *fh);
605 void cli_do(int sockfd);
606 int cli_arg_help(struct cli_def *cli, int cr_ok, char *entry, ...);
607
608
609 // icmp.c
610 void host_unreachable(ipt destination, u16 id, ipt source, char *packet, int packet_len);
611
612
613 extern tunnelt *tunnel;
614 extern sessiont *session;
615 extern sessioncountt *sess_count;
616 extern ippoolt *ip_address_pool;
617 #define sessionfree (session[0].next)
618
619 #define log_backtrace(count, max) \
620 if (count++ < max) { \
621 void *array[20]; \
622 char **strings; \
623 int size, i; \
624 LOG(0, 0, t, "Backtrace follows"); \
625 size = backtrace(array, 10); \
626 strings = backtrace_symbols(array, size); \
627 if (strings) for (i = 0; i < size; i++) \
628 { \
629 LOG(0, 0, t, "%s\n", strings[i]); \
630 } \
631 free(strings); \
632 }
633
634
635 extern configt *config;
636 extern time_t basetime; // Time when this process started.
637 extern time_t time_now; // Seconds since EPOCH.
638 extern u32 last_id;
639 extern struct Tstats *_statistics;
640 extern ipt my_address;
641 extern int tun_write(u8 *data, int size);
642 extern int clifd;
643
644
645 #define TIME (config->current_time)
646
647 // macros for handling help in cli commands
648 #define CLI_HELP_REQUESTED (argc > 0 && argv[argc-1][strlen(argv[argc-1])-1] == '?')
649 #define CLI_HELP_NO_ARGS (argc > 1 || argv[0][1]) ? CLI_OK : cli_arg_help(cli, 1, NULL)
650
651 // CVS identifiers (for "show version file")
652 extern char const *cvs_id_arp;
653 extern char const *cvs_id_cli;
654 extern char const *cvs_id_cluster;
655 extern char const *cvs_id_constants;
656 extern char const *cvs_id_control;
657 extern char const *cvs_id_icmp;
658 extern char const *cvs_id_l2tpns;
659 extern char const *cvs_id_ll;
660 extern char const *cvs_id_md5;
661 extern char const *cvs_id_ppp;
662 extern char const *cvs_id_radius;
663 extern char const *cvs_id_tbf;
664 extern char const *cvs_id_util;
665
666 #endif /* __L2TPNS_H__ */