summaryrefslogtreecommitdiff
path: root/sys/src/9/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-10-11 12:16:21 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-10-11 12:16:21 +0000
commitad1ab7089d9f046080450e59724bef2c98fc8f5a (patch)
tree58100a825dcfcef1d969788e7d54d1bdbeb10789 /sys/src/9/ip
parent5484260b42b0a4061444670e812aff3973cc79fb (diff)
devip: add comment to ip.h explaining Routehint struct
Diffstat (limited to 'sys/src/9/ip')
-rw-r--r--sys/src/9/ip/ip.h6
1 files changed, 6 insertions, 0 deletions
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 */