code: func (n *NIC) RemoveSubnet(subnet tcpip.Subnet) {
  	n.mu.Lock()
  
  	// Use the same underlying array.
  	tmp := n.subnets[:0]
  	for _, sub := range n.subnets {
  		if sub != subnet {
  			tmp = append(tmp, sub)
  		}
  	}
  	n.subnets = tmp
  
  	n.mu.Unlock()
  }
docs: // RemoveSubnet removes the given subnet from n.