Hi All,<br><br>Recently I upgraded one my app which used to WinPcap 3.1 to 4.0.<br>I replaced by pcap_open_live() api call with pcap_open().<br><br>After this change I noticed that if the device indicated by 'source' argument does not exist the latest version of WinPcap
<br>throws exception whereas the earlier version used to return -1 and I was able to indicate the error to use and exit.<br><br>My call to pcap_open() is as follows:<br><br> fp = pcap_open(ifName,<br> 65536,
<br> /* We do not want to get the packet we sent */<br> PCAP_OPENFLAG_PROMISCUOUS|PCAP_OPENFLAG_NOCAPTURE_LOCAL,<br> 1,<br> NULL,<br> errBuf);
<br><br>I would really appreciate if someone could point me if any additional check/function call is<br>necessary to avoid the exception.<br clear="all"><br>-- <br>thanks,<br>Rohan Sen