Displaying 3 results from an estimated 3 matches for "outpkt".
Did you mean:
out_pkt
2010 Sep 20
0
No subject
...gt;inmaclength) {
+ if(inpkt->len < sizeof(inpkt->flag_bits) + sizeof(inpkt->seqno) + =
n->inmaclength) {
ifdebug(TRAFFIC) logger(LOG_DEBUG, "Got too short packet from %s =
(%s)",
n->name, n->hostname);
return;
@@ -302,6 +308,7 @@
return;
}
=09
+ outpkt->flag_bits =3D inpkt->flag_bits;
outpkt->len =3D outlen + outpad;
inpkt =3D outpkt;
}
@@ -346,9 +353,7 @@
=20
/* Decompress the packet */
=20
- length_t origlen =3D inpkt->len;
-
- if(n->incompression) {
+ if(n->incompression && inpkt->flags.compress) {
out...
2005 Dec 20
0
Question about tc class in skb
...riority, skb->dst->tclassid, skb->tc_classid,
skb->tc_index, skb->tc_verd (okay, that was reaching). If I ping with
different QoS bits which I''m assigning to different htb flows, I see
(these are my debugging messages in the driver):
~$ ping -Q 0x10 172.29.50.230
kernel: outpkt: priority:06 tclassid:0x0 tc_classid:0x0 tc_index:0x0
tc_verd:0x2000 nfmark:00
~$ ping -Q 0x08 172.29.50.230
kernel: outpkt: priority:02 tclassid:0x0 tc_classid:0x0 tc_index:0x0
tc_verd:0x2000 nfmark:00
Nada. ''pri'' does change, but it seems to get set by the QoS value
directl...
2011 Jan 03
1
Tinc improvements
..., vpn_packet_t *inpkt) {
@@ -260,6 +261,10 @@
n->name, n->hostname);
return;
}
+
+ /* Remove flags */
+
+ inpkt->len -= sizeof(inpkt->flags);
/* Check packet length */
@@ -367,6 +372,7 @@
void receive_tcppacket(connection_t *c, char *buffer, int len) {
vpn_packet_t outpkt;
+ memset(&outpkt.flags, 0, sizeof(outpkt.flags));
outpkt.len = len;
if(c->options & OPTION_TCPONLY)
@@ -475,6 +481,10 @@
inpkt->len += n->outmaclength;
}
+ /* Add flags (not encrypted) */
+
+ inpkt->len += sizeof(inpkt->flags);
+
/* Determine which socket we h...