I believe the Ethernet/WIFI merge that happened just recently removes
the hard-coded prefixes entirely.  I commented on it initially in the
Connectivity changeset, though nothing was able to be done at the time. 

On Wed, 2015-05-06 at 14:47 +0000, Lankswert, Patrick wrote:
> Erich (et al.),
> 
> Do we have a plan to transition to network interface enumeration? I think
> that the transition away from the ethX and wlanX pattern in the linux kernel
> happened a long time ago. The udev rules support mapping back to ethX or
> other is distro driven and, therefore, not dependable.
> 
> I regret on catching this sooner.
> 
> Pat
> 
> > -----Original Message-----
> > From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-
> > bounces at lists.iotivity.org] On Behalf Of Keane, Erich
> > Sent: Tuesday, May 05, 2015 6:44 PM
> > To: Schulhof, Gabriel
> > Cc: iotivity-dev at lists.iotivity.org
> > Subject: Re: [dev] Simple client/server in C
> > 
> > Sup Fedora Buddy!
> > 
> > If you're on an older version of the code (not pulled in the last few
> hours),
> > the lookup for Wifi/Ethernet was done by the interface name.
> > 
> > We look up in
> > resource/csdk/connectivity/src/wifi_adapter/linux/cawifinwmonitor.c and
> > resource/csdk/connectivity/src/ethernet_adapter/linux/caethernetnwmoni
> > tor.c
> > for interfaces based on the prefix of the name.  What we check are the
> > Ubuntu defaults, which are "eth" and "wlan" (such as eth0, eth1, wlan1,
> > wlan2, etc).
> > 
> > In order to get this to work, I'd suggest altering the "matchName" in the
> first
> > one above (wifi_adapter) to "wlp".
> > 
> > -Erich
> > 
> > On Wed, 2015-05-06 at 01:38 +0300, Schulhof, Gabriel wrote:
> > > Hey!
> > >
> > > Fedora 20 x86_64
> > >
> > > lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
> > >         inet 127.0.0.1  netmask 255.0.0.0
> > >         inet6 ::1  prefixlen 128  scopeid 0x10<host>
> > >         loop  txqueuelen 0  (Local Loopback)
> > >         RX packets 615118  bytes 1440051927 (1.3 GiB)
> > >         RX errors 0  dropped 0  overruns 0  frame 0
> > >         TX packets 615118  bytes 1440051927 (1.3 GiB)
> > >         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> > >
> > > wlp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
> > >         inet 192.168.1.33  netmask 255.255.255.0  broadcast
> 192.168.1.255
> > >         inet6 fe80::ae7b:a1ff:fe71:f255  prefixlen 64  scopeid
> 0x20<link>
> > >         ether ac:7b:a1:71:f2:55  txqueuelen 1000  (Ethernet)
> > >         RX packets 15294963  bytes 16052402206 (14.9 GiB)
> > >         RX errors 0  dropped 0  overruns 0  frame 0
> > >         TX packets 11112624  bytes 4103828260 (3.8 GiB)
> > >         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> > 
> > _______________________________________________
> > iotivity-dev mailing list
> > iotivity-dev at lists.iotivity.org
> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to