Can SharpPcap auto choose Ethernet for capturing packets?
var device = CaptureDeviceList.Instance[3];//I don't want to hard-code it.
Should I use "if, else" or "for-loop" to check it?
Can SharpPcap auto choose Ethernet for capturing packets?
var device = CaptureDeviceList.Instance[3];//I don't want to hard-code it.
Should I use "if, else" or "for-loop" to check it?
Copyright © 2021 Jogjafile Inc.
Use Foreach-loop: