aboutsummaryrefslogtreecommitdiffstats
path: root/ggsn/ggsn.c
diff options
context:
space:
mode:
authorjjako <jjako>2003-01-05 17:59:49 +0000
committerjjako <jjako>2003-01-05 17:59:49 +0000
commit4901471376df248cdae8e5f88616c45778e2e599 (patch)
treefa31eb11a2f751ed4e5acdb018d821de7b4c26cf /ggsn/ggsn.c
parent3c1eb4686730de5649073d4942d9fe407514a7f2 (diff)
Absolute path to ifconfig and route in ggsn and sgsnemu
Diffstat (limited to 'ggsn/ggsn.c')
-rw-r--r--ggsn/ggsn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index a850de8..effe226 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -139,6 +139,7 @@ int getip(struct pdp_t *pdp, void* ipif, struct ul66_t *eua,
int delete_context(struct pdp_t *pdp) {
+ if (debug) printf("Deleting PDP context\n");
pdp_ipdel(pdp);
return 0;
}
@@ -177,7 +178,7 @@ int create_tun() {
strncpy(snet, inet_ntoa(net), 100);
strncpy(smask, inet_ntoa(mask), 100);
- sprintf(buf, "ifconfig %s %s mtu 1450 netmask %s",
+ sprintf(buf, "/sbin/ifconfig %s %s mtu 1450 netmask %s",
tun->devname, snet, smask);
if (debug) printf("%s\n", buf);
system(buf);
@@ -226,7 +227,6 @@ int main(int argc, char **argv)
fd_set fds; /* For select() */
struct timeval idleTime; /* How long to select() */
- int i; /* for loop */
struct ul_t qos, apn;
unsigned char qosh[3], apnh[256];