projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f686f44
)
make MAXPACLEN the default buffer length on non ax25 connections
author
djk
<djk>
Tue, 28 Mar 2000 22:08:06 +0000
(22:08 +0000)
committer
djk
<djk>
Tue, 28 Mar 2000 22:08:06 +0000
(22:08 +0000)
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index b50514fa618f47bb0895bbdb61977ac1c43d0402..e22d84acf8cae4f752d3ee5ba114c73e50d39518 100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-44,7
+44,9
@@
#define MAXPATHLEN 256
#endif
#define MAXPATHLEN 256
#endif
+#define DEFPACLEN 128
#define MAXPACLEN 236
#define MAXPACLEN 236
+
#define DBUF 1
#define DMSG 2
#define DBUF 1
#define DMSG 2
@@
-84,7
+86,7
@@
char echo = 1; /* echo characters on stdout from stdin */
char int_tabs = 0; /* interpret tabs -> spaces */
char *root = "/spider"; /* root of data tree, can be overridden by DXSPIDER_ROOT */
int timeout = 60; /* default timeout for logins and things */
char int_tabs = 0; /* interpret tabs -> spaces */
char *root = "/spider"; /* root of data tree, can be overridden by DXSPIDER_ROOT */
int timeout = 60; /* default timeout for logins and things */
-int paclen =
128;
/* default buffer size for outgoing packets */
+int paclen =
DEFPACLEN;
/* default buffer size for outgoing packets */
int tabsize = 8; /* default tabsize for text messages */
myregex_t iscallreg[] = { /* regexes to determine whether this is a reasonable callsign */
int tabsize = 8; /* default tabsize for text messages */
myregex_t iscallreg[] = { /* regexes to determine whether this is a reasonable callsign */
@@
-488,6
+490,11
@@
lerr:
nl = '\n';
echo = 1;
}
nl = '\n';
echo = 1;
}
+
+ /* this is kludgy, but hey so is the rest of this! */
+ if (!eq(connsort, "ax25") && paclen == DEFPACLEN) {
+ paclen = MAXPACLEN;
+ }
}
void connect_to_node()
}
void connect_to_node()