From ad1ab7089d9f046080450e59724bef2c98fc8f5a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 11 Oct 2021 12:16:21 +0000 Subject: [PATCH] devip: add comment to ip.h explaining Routehint struct --- sys/src/9/ip/ip.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/src/9/ip/ip.h b/sys/src/9/ip/ip.h index e9f6fcf18..0635e1f0e 100644 --- a/sys/src/9/ip/ip.h +++ b/sys/src/9/ip/ip.h @@ -164,6 +164,12 @@ struct Ip4hdr uchar dst[4]; /* IP destination */ }; +/* + * cache for route and arp table lookups. + * one per Conv so conversations with a + * fixed target can avoid the per packet + * lookup overhead. + */ struct Routehint { Route *r; /* last route used */