Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python3 netifaces get current interface

>>> import netifaces
>>> def_gw_device = netifaces.gateways()['default'][netifaces.AF_INET][1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #netifaces #current #interface
ADD COMMENT
Topic
Name
1+2 =