search for: inpkt

Displaying 3 results from an estimated 3 matches for "inpkt".

2010 Sep 20
0
No subject
...f(len > n->maxmtu) - len =3D n->maxmtu; - if(n->minmtu < len) - n->minmtu =3D len; + if(!packet->flags.pmtur) { + /* PMTU Probe --> reply */ + + packet->flags.pmtur =3D 1; + send_udppacket(n, packet); } } =20 @@ -264,11 +269,12 @@ =20 /* Remove flags */ =20 - inpkt->len -=3D sizeof(inpkt->flags); + inpkt->flag_bits =3D ntohl(inpkt->flag_bits); + inpkt->len -=3D sizeof(inpkt->flag_bits); =20 /* Check packet length */ =20 - if(inpkt->len < sizeof(inpkt->seqno) + n->inmaclength) { + if(inpkt->len < sizeof(inpkt->flag_bits...
2010 Nov 13
3
[PATCH 1/4] Experimental IFF_ONE_QUEUE support for Linux
--- doc/tinc.conf.5.in | 3 +++ src/linux/device.c | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/doc/tinc.conf.5.in b/doc/tinc.conf.5.in index 2bfd5fe..01f7f81 100644 --- a/doc/tinc.conf.5.in +++ b/doc/tinc.conf.5.in @@ -255,6 +255,9 @@ a lookup if your DNS server is not responding. This does not affect resolving hostnames to IP addresses from the host
2011 Jan 03
1
Tinc improvements
...100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -72,6 +72,7 @@ void send_mtu_probe(node_t *n) { vpn_packet_t packet; + memset(&packet.flags, 0, sizeof(packet.flags)); int len, i; int timeout = 1; @@ -238,12 +239,12 @@ static bool try_mac(const node_t *n, const vpn_packet_t *inpkt) { unsigned char hmac[EVP_MAX_MD_SIZE]; - if(!n->indigest || !n->inmaclength || !n->inkey || inpkt->len < sizeof inpkt->seqno + n->inmaclength) + if(!n->indigest || !n->inmaclength || !n->inkey || inpkt->len < sizeof inpkt->seqno + sizeof inpkt->flags +...