fdbased 还是不太行

This commit is contained in:
impact-eintr
2022-12-29 19:05:16 +08:00
parent 7526791053
commit 162cca1079
10 changed files with 444 additions and 387 deletions

View File

@@ -111,6 +111,7 @@ func (r *Route) RemoveWaker(waker *sleep.Waker) {
// IsResolutionRequired returns true if Resolve() must be called to resolve
// the link address before the this route can be written to.
// 本地缓存有东西 而且不知道远端的MAC
func (r *Route) IsResolutionRequired() bool {
return r.ref.linkCache != nil && r.RemoteLinkAddress == ""
}