Remove WriteRaw, cidrTree -> routeTree to better describe its purpose, remove redundancy from field names (#582)

This commit is contained in:
Nate Brown
2021-11-12 12:47:09 -06:00
committed by GitHub
parent 467e605d5e
commit 78d0d46bae
15 changed files with 137 additions and 204 deletions

View File

@ -18,11 +18,11 @@ func (NoopTun) Activate() error {
return nil
}
func (NoopTun) CidrNet() *net.IPNet {
func (NoopTun) Cidr() *net.IPNet {
return nil
}
func (NoopTun) DeviceName() string {
func (NoopTun) Name() string {
return "noop"
}
@ -34,10 +34,6 @@ func (NoopTun) Write([]byte) (int, error) {
return 0, nil
}
func (NoopTun) WriteRaw([]byte) error {
return nil
}
func (NoopTun) NewMultiQueueReader() (io.ReadWriteCloser, error) {
return nil, errors.New("unsupported")
}