Compare commits
4 Commits
v0.0.82-mu
...
v0.0.83-mu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33e24632d0 | ||
|
|
e1b4c6aafc | ||
|
|
09d1932588 | ||
|
|
4988479df4 |
@@ -11,5 +11,8 @@ cd ..
|
||||
[ -x glorytun ] || exit 1
|
||||
|
||||
mkdir -p deploy
|
||||
|
||||
cp glorytun deploy/glorytun-$(cat VERSION)-$(uname -m).debug.bin
|
||||
|
||||
strip -s glorytun
|
||||
mv glorytun deploy/glorytun-$(cat VERSION)-$(uname -m).bin
|
||||
cp glorytun deploy/glorytun-$(cat VERSION)-$(uname -m).bin
|
||||
|
||||
2
mud
2
mud
Submodule mud updated: 7cc6e7ad72...2d171c6dd9
2
src/ip.h
2
src/ip.h
@@ -30,7 +30,9 @@ ip_get_common(struct ip_common *ic, const uint8_t *data, size_t size)
|
||||
ic->proto = data[9];
|
||||
ic->hdr_size = (data[0] & 0xF) << 2;
|
||||
ic->size = ((data[2] << 8) | data[3]);
|
||||
if (ic->size >= 20)
|
||||
return 0;
|
||||
break;
|
||||
case 6:
|
||||
ic->tc = ((data[0] & 0xF) << 4) | (data[1] >> 4);
|
||||
ic->proto = data[6];
|
||||
|
||||
@@ -386,8 +386,7 @@ main(int argc, char **argv)
|
||||
size_t size = 0;
|
||||
|
||||
while (sizeof(buf) - size >= gt.mtu) {
|
||||
const int r = tun_read(tun_fd, &buf[size],
|
||||
sizeof(buf) - size);
|
||||
const int r = tun_read(tun_fd, &buf[size], sizeof(buf) - size);
|
||||
|
||||
if (r <= 0 || r > gt.mtu)
|
||||
break;
|
||||
@@ -422,7 +421,7 @@ main(int argc, char **argv)
|
||||
tc = ic.tc & 0xFC;
|
||||
}
|
||||
|
||||
if (p == q)
|
||||
if (p >= q)
|
||||
break;
|
||||
|
||||
int r = mud_send(mud, &buf[p], q - p, tc);
|
||||
|
||||
Reference in New Issue
Block a user