From: Fredrik Tolf Date: Sat, 9 Aug 2008 15:35:31 +0000 (+0200) Subject: Fix TAP packet output length. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=3cb771e8cb4d29cc95da149f98b8137503c9c1f4;p=mctap.git Fix TAP packet output length. --- diff --git a/src/mctap.c b/src/mctap.c index 472af01..2bec00f 100644 --- 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); } } }