Added TCP/IP trafic limits

This commit is contained in:
Michiel Broek
2002-03-23 13:12:29 +00:00
parent 8ffd82f9f2
commit 4462d9febb
9 changed files with 76 additions and 7 deletions

View File

@@ -185,6 +185,7 @@ int call(faddr *addr)
* If we have an internet address, set protocol
*/
if (inetaddr) {
RegTCP();
Syslog('d', "TCP/IP node \"%s\"", MBSE_SS(inetaddr));
if (tcp_mode == TCPMODE_NONE) {
@@ -207,8 +208,11 @@ int call(faddr *addr)
Syslog('d', "TCP mode set to %d", tcp_mode);
}
} else {
Syslog('d', "No IP address, fallback to dial");
tcp_mode = TCPMODE_NONE;
WriteError("No IP address, abort call");
rc = ST_NOCALL8;
putstatus(addr, 10, rc);
nodeulock(addr);
return rc;
}
}

View File

@@ -256,6 +256,7 @@ int main(int argc, char *argv[])
die(101);
}
free(p);
RegTCP();
break;
case 'a': inetaddr = optarg;