1 diff -uNr vtun-2.5b1/cfg_file.y vtun-2.5b1-iproute/cfg_file.y
2 --- vtun-2.5b1/cfg_file.y Thu Jul 26 03:17:47 2001
3 +++ vtun-2.5b1-iproute/cfg_file.y Tue Aug 21 01:11:41 2001
5 %token K_PASSWD K_PROG K_PPP K_SPEED K_IFCFG K_FWALL K_ROUTE K_DEVICE
6 %token K_MULTI K_SRCADDR K_IFACE K_ADDR
7 %token K_TYPE K_PROT K_COMPRESS K_ENCRYPT K_KALIVE K_STAT
8 -%token K_UP K_DOWN K_SYSLOG
9 +%token K_UP K_DOWN K_SYSLOG K_IPROUTE
11 %token <str> K_HOST K_ERROR
12 %token <str> WORD PATH STRING
14 vtun.fwall = strdup($2);
19 + vtun.iproute = strdup($2);
29 + | K_IPROUTE STRING {
30 + add_cmd(parse_cmds, strdup(vtun.iproute),strdup($2),
35 cfg_error("Unknown cmd '%s'",$1);
37 diff -uNr vtun-2.5b1/cfg_kwords.h vtun-2.5b1-iproute/cfg_kwords.h
38 --- vtun-2.5b1/cfg_kwords.h Mon Jun 11 00:48:38 2001
39 +++ vtun-2.5b1-iproute/cfg_kwords.h Tue Aug 21 01:04:15 2001
42 { "firewall", K_FWALL },
44 + { "ip", K_IPROUTE },
45 { "keepalive",K_KALIVE },
47 { "syslog", K_SYSLOG },
48 diff -uNr vtun-2.5b1/main.c vtun-2.5b1-iproute/main.c
49 --- vtun-2.5b1/main.c Mon Jun 11 00:48:38 2001
50 +++ vtun-2.5b1-iproute/main.c Tue Aug 21 01:08:44 2001
52 vtun.ifcfg = strdup("/sbin/ifconfig");
53 vtun.route = strdup("/sbin/route");
54 vtun.fwall = strdup("/sbin/ipchains");
55 + vtun.iproute = strdup("/sbin/ip");
59 diff -uNr vtun-2.5b1/vtun.h vtun-2.5b1-iproute/vtun.h
60 --- vtun-2.5b1/vtun.h Mon Jun 11 00:48:38 2001
61 +++ vtun-2.5b1-iproute/vtun.h Tue Aug 21 01:07:27 2001
63 char *ifcfg; /* Command to configure net devices */
64 char *route; /* Command to configure routing */
65 char *fwall; /* Command to configure FireWall */
66 + char *iproute; /* iproute command */
68 char *svr_name; /* Server's host name */
69 int svr_port; /* Server's port */
70 diff -uNr vtun-2.5b1/vtund.conf.5 vtun-2.5b1-iproute/vtund.conf.5
71 --- vtun-2.5b1/vtund.conf.5 Mon Jun 11 00:48:38 2001
72 +++ vtun-2.5b1-iproute/vtund.conf.5 Tue Aug 21 01:17:08 2001
74 .IP \fBroute\ \fIpath\fR
75 path to \fBroute\fR(8) program. Can be used in session sections.
77 +.IP \fBip\ \fIpath\fR
78 +path to \fBiproute\fR(8) program. Can be used in session sections.
80 .IP \fBfirewall\ \fIpath\fR
81 program for the firewall setup.
84 run program specified by \fBifconfig\fR statement in \fBoptions\fR section.
85 .IP \fBroute\ \fIarguments\fR
86 run program specified by \fBroute\fR statement in \fBoptions\fR section.
87 +.IP \fBip\ \fIarguments\fR
88 +run program specified by \fBip\fR statement in \fBoptions\fR section.
89 .IP \fBfirewall\ \fIarguments\fR
90 run program specified by \fBfirewall\fR statement in \fBoptions\fR section.