Project

General

Profile

Actions

Bug #11196

closed

getifaddrs does not return MAC addresses (ISC KEA)

Added by Jorge Schrauwen over 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Might be vagely related to #7494

The first: getifaddrs does not return MAC addresses, only IPv4 and IPv6 addresses. 
Either getifaddrs should be fixed (google found a patch for this) to return all addresses 
or a specific ioctl should be called to get them

As noted by ISC at https://gitlab.isc.org/isc-projects/kea/issues/631#note_60593


Related issues

Is duplicate of illumos gate - Bug #3729: getifaddrs must learn to stop worrying and love the other address familiesClosed2013-04-19

Actions
Actions #1

Updated by Sebastian Wiedenroth over 4 years ago

This is actually #3729, which despite beeing closed is not yet resolved.

There was a bug in libuv which could not handle AF_LINK entries (MAC addresses) beeing returned and broke node.js.
So that change was backed out. The libuv issue has been fixed since.

A new version of that change was sent for review (https://www.illumos.org/rb/r/318/) which allowes existing binaries to not receive AF_LINK entries and only enables this feature for newly compiled software. That way old node.js binaries will not break.

That workaround is a bit ugly and will likely have to be kept around forever.
There were questions about it that I was not able to really answer.
Maybe someone more qualified than myself can take a look and make sure it's ok.

Actions #2

Updated by Gergő Mihály Doma over 4 years ago

  • Is duplicate of Bug #3729: getifaddrs must learn to stop worrying and love the other address families added
Actions #3

Updated by Electric Monk over 1 year ago

  • Status changed from New to Closed

git commit 3ee592424ed4bb7b850d9adccb9f3c493ce7534b

commit  3ee592424ed4bb7b850d9adccb9f3c493ce7534b
Author: Sebastian Wiedenroth <wiedi@frubar.net>
Date:   2022-05-20T00:04:11.000Z

    3729 getifaddrs must learn to stop worrying and love the other address families
    Portions contributed by: Robert Mustacchi <rm@fingolfin.org>
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Dan McDonald <danmcd@joyent.com>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF