Dolda2000 GitWeb
/
mctap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4969792
)
Fix TAP packet output length.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 9 Aug 2008 15:35:31 +0000
(17:35 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 9 Aug 2008 15:35:31 +0000
(17:35 +0200)
src/mctap.c
patch
|
blob
|
blame
|
history
diff --git
a/src/mctap.c
b/src/mctap.c
index
472af01
..
2bec00f
100644
(file)
--- a/
src/mctap.c
+++ b/
src/mctap.c
@@
-146,7
+146,7
@@
static void bridge(int sock, int tap, struct sockaddr *dst, socklen_t dstlen)
pi.flags = 0;
pi.proto = 0;
memcpy(buf, &pi, sizeof(pi));
- write(tap, buf, ret);
+ write(tap, buf,
sizeof(pi) +
ret);
}
}
}