Skip to content

I get the error running as root: OSError: [Errno 19] No such device #2

Description

@vudumagic1968

python3.9
Traceback (most recent call last):
File "/export/backups/scratch/mjobe/git/testpy/sniffer/./snifferCore.py", line 95, in
sniffer(count=10,showPort=True,showRawData=True)
File "/export/backups/scratch/mjobe/git/testpy/sniffer/./snifferCore.py", line 71, in sniffer
with PromiscuousSocketManager() as s:
File "/export/backups/scratch/mjobe/git/testpy/sniffer/./snifferCore.py", line 35, in init
fcntl.ioctl(s, FLAGS.SIOCGIFFLAGS, ifr) # get the flags
OSError: [Errno 19] No such device

$ uname -a
Linux engdev71.efjdfw.local 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions