~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/admin.c: Export `a_info'.
[tripe]
/
server
/
tun-slip.c
diff --git
a/server/tun-slip.c
b/server/tun-slip.c
index
e807662
..
85e9cd8
100644
(file)
--- a/
server/tun-slip.c
+++ b/
server/tun-slip.c
@@
-121,9
+121,10
@@
static void t_read(int fd, unsigned mode, void *v)
case SL_END:
if (st & ST_BAD)
;
case SL_END:
if (st & ST_BAD)
;
- else if (st & ST_ESC)
+ else if (st & ST_ESC)
{
a_warn("TUN", "%s", p_ifname(t->p), "slip", "escape-end", A_END);
a_warn("TUN", "%s", p_ifname(t->p), "slip", "escape-end", A_END);
- else if (q == t->buf) {
+ st |= ST_BAD;
+ } else if (q == t->buf) {
T( trace(T_TUNNEL, "tun-slip: empty packet"); )
} else {
IF_TRACING(T_TUNNEL, {
T( trace(T_TUNNEL, "tun-slip: empty packet"); )
} else {
IF_TRACING(T_TUNNEL, {
@@
-289,7
+290,7
@@
static tunnel *t_create(peer *p, int fd, char **ifn)
dstr d = DSTR_INIT;
unsigned char ch;
tunnel *t;
dstr d = DSTR_INIT;
unsigned char ch;
tunnel *t;
- static const
char
end[] = { SL_END, SL_END };
+ static const
octet
end[] = { SL_END, SL_END };
/* --- Try to find a spare static interface --- */
/* --- Try to find a spare static interface --- */