code: func (s *Stack) SetPromiscuousMode(nicID tcpip.NICID, enable bool) *tcpip.Error {
  	s.mu.RLock()
  	defer s.mu.RUnlock()
  
  	nic := s.nics[nicID]
  	if nic == nil {
  		return tcpip.ErrUnknownNICID
  	}
  
  	nic.setPromiscuousMode(enable)
  
  	return nil
  }
docs: // SetPromiscuousMode enables or disables promiscuous mode in the given NIC.