Bug 682388 - assumes all ethernet devices are named ethX
Summary: assumes all ethernet devices are named ethX
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ptlib
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 682334 682389
TreeView+ depends on / blocked
 
Reported: 2011-03-05 02:54 UTC by Bill Nottingham
Modified: 2014-03-17 03:26 UTC (History)
3 users (show)

Fixed In Version: ptlib-2.8.3-4.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 682389 (view as bug list)
Environment:
Last Closed: 2011-04-26 16:23:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2011-03-05 02:54:19 UTC
Description of problem:

Network devices can have arbitrary names, and due to
http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming, will have
different names in Fedora 15.

In the sockets code:

PBoolean PEthSocket::Connect(const PString & interfaceName)
...
  if (strncmp("eth", interfaceName, 3) == 0)
    medium = Medium802_3;
  else if (strncmp("lo", interfaceName, 2) == 0)
    medium = MediumLoop;
  else if (strncmp("sl", interfaceName, 2) == 0) {
    medium = MediumWan;
    fakeMacHeader = PTrue;
  }
  else if (strncmp("ppp", interfaceName, 3) == 0) {
    medium = MediumWan;
    fakeMacHeader = PTrue;
  }
  else if (strncmp("ippp", interfaceName, 4) == 0) {
    medium = MediumWan;
    ipppInterface = PTrue;
  }
  else {
...

Version-Release number of selected component (if applicable):

ptlib-2.8.3

How reproducible:

By code inspection.

Comment 1 Peter Robinson 2011-03-14 01:49:51 UTC
Reported upstream here: https://sourceforge.net/tracker/?func=detail&aid=3209549&group_id=204472&atid=989748

Comment 2 Fedora Update System 2011-04-20 17:08:37 UTC
ptlib-2.8.3-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ptlib-2.8.3-4.fc15

Comment 3 Fedora Update System 2011-04-21 03:00:42 UTC
Package ptlib-2.8.3-4.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ptlib-2.8.3-4.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ptlib-2.8.3-4.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-04-26 16:23:05 UTC
ptlib-2.8.3-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.