public bool AddDirectNetIf(LinkDevice dev, byte netIfIndex)
        {
            // Important: check device not already in use.
            if ((dev == null) || (Manager.GetLinkDriver(dev) != null))
            {
                return(false);
            }
            LinkDriver lp = new LinkDriver(Manager, dev, netIfIndex, true, true, true, false);

            Manager.AddDriver(lp);
            lp.StartLinkDriver();
            return(true);
        }
        public bool AddListenerNetIf(LinkDevice dev, byte netIfIndex)
        {
            // Important: check device not already in use.
            if ((dev == null) || (Manager.GetLinkDriver(dev) != null))
            {
                return(false);
            }
            NetIfDevice pd = new NetIfDevice(this, dev); // TODO: who should owner be?
            LinkDriver  lp = new LinkDriver(Manager, pd, netIfIndex, true, true, true, false);

            Manager.AddDriver(lp);
            lp.StartLinkDriver();
            return(true);
        }