requirement of root privileges for libpcap functions

前端 未结 3 1366
孤独总比滥情好
孤独总比滥情好 2021-01-15 03:26

The pcap_lookupdev() fills in the errbuf variable when run as non-root user, while the same functions returns the value of the first available network interface

3条回答
  •  不要未来只要你来
    2021-01-15 04:21

    It mostly depends on OS. Not all pcap functions require root privilege on all OS.

    Ref to Reference Manual Pages, all special privilege requirements are listed respectively.

提交回复
热议问题