Development discussion of WireGuard
 help / color / mirror / Atom feed
* [WireGuard] WireGuard ECN Implementation
@ 2016-09-29 17:50 Jason A. Donenfeld
  2016-09-29 18:19 ` Dave Taht
  0 siblings, 1 reply; 7+ messages in thread
From: Jason A. Donenfeld @ 2016-09-29 17:50 UTC (permalink / raw)
  To: Dave Taht; +Cc: WireGuard mailing list

Hey Dave,

I'm back! Catching up on the backlog now. You wrote in your blog post:

> In a day, the author (while on a plane!) tossed off an ecn encapsulation
> implementation (it worked! but it=E2=80=99s not currently as modern RFC c=
ompliant as it should be),

What part of it deviates from the RFC precisely? Here's a short
summary of the implementation:

- When a packet is transmitted:

    outer_packet->ds =3D
            ip_tunnel_ecn_encap(0, ip_hdr(inner_packet), inner_packet);

- When a packet is received:

    var =3D ip_tunnel_get_dsfield(ip_hdr(outer_packet), outer_packet);
    if (INET_ECN_is_ce(var))
        IP_ECN_set_ce(ip_hdr(inner_packet));

What specifically is wrong with this? Where does it deviate from the
RFC? I'd like to be as "correct" as possible.

Talk soon,
Jason

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-09-30 16:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29 17:50 [WireGuard] WireGuard ECN Implementation Jason A. Donenfeld
2016-09-29 18:19 ` Dave Taht
2016-09-29 18:59   ` Jason A. Donenfeld
2016-09-29 19:03     ` Dave Taht
2016-09-29 19:05       ` Jason A. Donenfeld
2016-09-29 20:03         ` Dave Taht
2016-09-30 16:34           ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).