netbirdio/netbird · error

interface name not found in ifconfig output

Error message

interface name not found in ifconfig output

What it means

Error "interface name not found in ifconfig output" thrown in netbirdio/netbird.

Source

Thrown at client/iface/freebsd/iface.go:79

			parts := strings.Fields(line)
			if len(parts) < 2 {
				return nil, fmt.Errorf("failed to parse line: %s", line)
			}
			group = parts[1]
		}

		// If line contains "inet ", it's a line with IP address
		if strings.Contains(line, "inet ") {
			parts := strings.Fields(line)
			if len(parts) < 2 {
				return nil, fmt.Errorf("failed to parse line: %s", line)
			}
			ips = append(ips, parts[1])
		}
	}

	if name == "" {
		return nil, fmt.Errorf("interface name not found in ifconfig output")
	}

	mtuInt, err := strconv.Atoi(mtu)
	if err != nil {
		return nil, fmt.Errorf("failed to parse MTU: %w", err)
	}

	return &iface{
		Name:    name,
		MTU:     mtuInt,
		Group:   group,
		IPAddrs: ips,
	}, nil
}

func parseIFName(output []byte) (string, error) {
	// TODO: implement without allocations
	lines := strings.Split(string(output), "\n")

View on GitHub (pinned to 93e97f4bf1)

When it happens

Trigger: Thrown at client/iface/freebsd/iface.go:79 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of netbirdio/netbird@93e97f4bf1 (2026-08-16). Data as JSON: /api/errors/8f8838fdd8bdd626. Report an issue: GitHub.