From d05d6d9a9e54388b42d0427295869c9d1c860deb Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 28 Dec 2021 15:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B7=AF=E7=94=B1=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gold/link/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gold/link/router.go b/gold/link/router.go index bdb5678..e1eb3ad 100644 --- a/gold/link/router.go +++ b/gold/link/router.go @@ -46,6 +46,7 @@ func (r *Router) NextHop(cidr string) *Link { return r.table[cidr] } +// SetItem 添加一条表项 func (r *Router) SetItem(ip *net.IPNet, l *Link) { r.mu.Lock() // 从第一条表项开始匹配