Bug #639

libpnm fails to configure shared address (SIOCSLIFMTU failed.: Invalid argument)

Added by Sergio Lopez about 3 years ago. Updated about 3 years ago.

Status:Resolved Start date:2011-01-16
Priority:High Due date:
Assignee:Sergio Lopez % Done:

100%

Category:- Spent time: -
Target version:- Estimated time:1.00 hour
Difficulty:Medium Tags:needs-triage

Description

When configuring a shared IP, libpnm gets the MTU (SIOCGLIFMTU ioctl) value from the physical interface, and tries to set (SIOCSLIFMTU ioctl) the same value in the logical interface. In Illumos, this fails with EINVAL.

History

Updated by Sergio Lopez about 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

From Illumos "uts/common/inet/ip/ip_if.c":

/* Only allow for logical unit zero i.e. not on "bge0:17" */
if (ipif->ipif_id != 0)
return (EINVAL);

The following change modifies libpnm so it doesn't try to set the MTU for logical interfaces:

changeset: 4:10070c13302e
tag: tip
user: Sergio Lopez <>
date: Mon Jan 17 10:01:14 2011 +0100
summary: 639: libpnm fails to configure shared address (SIOCSLIFMTU failed.: Invalid argument)

Also available in: Atom PDF