Skip to content

NPcap OEM 1.81-85 fails on pcap_open W2k8r2 when installed with /prior_driver=yes #822

@vitezslav-popovsky-solarwinds

Description

Describe the bug
Using the silent installation on Windows 2008 R2:

npcap-1.85-oem.exe /S /loopback_support=no /admin_only=yes /dot11_support=yes /winpcap_mode=no /prior_driver=yes

results in an error The data area passed to a system call is too small. (122) in the following pcap_open code:

char errbuf[PCAP_ERRBUF_SIZE];
pcap_t* pcap = pcap_open(
    "rpcap://\Device\NPF_{E3ADBA6B-C6E7-461F-8344-0652A6973CCB}", // name of the device
    65536, // portion of the packet to capture
    0, // PCAP_OPENFLAG
    256, // read timeout
    nullptr, // authentication on the remote machine
    errbuf // error buffer
    );

To Reproduce
Steps to reproduce the behavior:

  1. silent installation on Windows 2008 R2: npcap-1.85-oem.exe /S /loopback_support=no /admin_only=yes /dot11_support=yes /winpcap_mode=no /prior_driver=yes
  2. Installed driver:
C:\>wmic datafile where name='c:\\windows\\system32\\drivers\\npcap.sys' get version
Version
5.1.30.408
  1. pcap_open fails on The data area passed to a system call is too small. (122)

Expected behavior
Silent installer and pcap_open works on Windows 2008 R2

Diagnostic information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions