Ticket #1613 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Use appropriate request for ioctl() function to access the interface flags (thanks to Peter Koletzki for the report)

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.1
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: release-1.16 Backported: yes

Description

When using SIOCGIFCONF ifreq struct would be filled with the interface address rather than the flags of the interface. Therefore any test against the flags of this interface are not working at the moment. For gaining access to the flags, an additional socketctrl SIOCGIFFLAGS should be used.

Change History

comment:1 Changed 6 years ago by ming

  • Status changed from new to closed
  • Resolution set to fixed

In 4326:

Fixed #1613: Use appropriate request for ioctl() function to access the interface flags

comment:2 Changed 6 years ago by ming

In 4327:

Re #1613: Remove unused variable

comment:3 Changed 6 years ago by bennylp

In r4355: fixed bugs in the r4326 above:

  • the socket was already closed when ioctl() is called
  • the 'iff' structure was not initialized and did not contain the interface name

comment:4 Changed 6 years ago by riza

In 4403:

Re #1613: backported to 1.x

comment:5 Changed 6 years ago by riza

  • Backported set
Note: See TracTickets for help on using tickets.