Opened 11 years ago

Closed 4 years ago

#12009 closed Bug Report - General (Unverified)

backend doesn't start when network interface doesn't have link on it.

Reported by: cjanderson@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I have a machine with a number of interfaces wired and wireless. I want mythtv to listen on an ethernet interface and not a wireless one.

When I run mythtv-setup I am given a list with all IPs on the interfaces. There is no link on the ethernet interface but it is up and has an address.

I now try and start the backend and it tells me that there is no interface with an address present. This isn't true because the address shows up in this list:; project: TARGET=test SOURCES += test.cpp QT -= gui QT += network

#include <QNetworkInterface> #include <QStringList>

QStringList GetSettingValueList?(const QString &type) {

QStringList sList;

if (type == "LocalIPAddress") {

QList<QHostAddress> list = QNetworkInterface::allAddresses(); for (uint i = 0; i < (uint)list.size(); i++) {

if (list[i].toString().contains(":"))

continue; ignore IP6 addresses for now

sList << list[i].toString(); qDebug() << list[i].toString();

}

if (sList.isEmpty())

sList << "127.0.0.1";

}

return sList;

}

int main(int argc, char* argv[]) {

(void)argc; (void)argv; GetSettingValueList?("LocalIPAddress"); return 0;

}

Change History (4)

comment:1 Changed 11 years ago by Raymond Wagner

My guess is this bit here...

        if ((qni->flags() & QNetworkInterface::IsRunning) == 0)
            continue;

Why would you want to use a interface that wasn't actually usable?

comment:2 Changed 11 years ago by cjanderson@…

The strange this is that when I run the setup that interface is given me in the list, yet there is no link on that cable. So I have to try and figure out why that one interface isn't in the list which is a bit of a pain, even though during the setup it was given me as an option.

To be honest, I thought that the broadcasts (all that 239.255.255.255 stuff) would go down that interface and not on the wifi in that configuration.

The network configuration is: mythtv box connected to wifi for mac(instrash) and linux clients. On the wired ethernet there is a smart tv client that can be used to play recordings on the TV. The TV is wired and there is a direct network cable wired to the TV from the mythbox.

So while the interface isn't usable all the time the actual IP address assigned to it always available via the wifi.

comment:3 Changed 11 years ago by cjanderson@…

And the TV isn't on all the time

comment:4 Changed 4 years ago by Stuart Auchterlonie

Resolution: Unverified
Status: newclosed

Closing all old tickets in trac.

If your issue still persists, please open an issue in Github https://github.com/MythTV/mythtv/issues

and reference the existing trac ticket.

Note: See TracTickets for help on using tickets.