shithub: riscv

Download patch

ref: ad1ab7089d9f046080450e59724bef2c98fc8f5a
parent: 5484260b42b0a4061444670e812aff3973cc79fb
author: cinap_lenrek <[email protected]>
date: Mon Oct 11 08:16:21 EDT 2021

devip: add comment to ip.h explaining Routehint struct

--- a/sys/src/9/ip/ip.h
+++ b/sys/src/9/ip/ip.h
@@ -164,6 +164,12 @@
 	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 */