Project

General

Profile

Actions

Feature #938

closed

Add network status to UI

Added by Hammel over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
General
Target version:
Start date:
24 Feb 2023
Due date:
% Done:

100%

Estimated time:
Severity:
02 - High

Description

It should be clear from the launcher if the network is connected to anything.
This would be the first step in moving network startup to the background.


Related issues

Blocks launcher - Bug #945: Don't show date/time if no network connection is available.ClosedHammel26 Feb 2023

Actions
Actions #1

Updated by Hammel about 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

This is easily done with getifaddrs(3). There is an example in the man page. All we need to do is test for an IPv4 address (aka AF_INET) and if there is one then we enable the device icon.

There are two device icons: eth0 and wlan0. If the icon is displayed, the network is enabled with an IP address.

piboxd is monitoring for port events (see eth.c). It should write the events to a FIFO which launcher monitors. Launcher only needs to know ANY event occurred, so it doesn't need to read and parse the event. Just that if an event happens then launcher should retest the interfaces with getifaddrs. Just be sure to open the FIFO as r/w in piboxd so it can control when the FIFO is closed (re: when piboxd exits).

Actions #2

Updated by Hammel about 1 year ago

  • Priority changed from Urgent to Immediate
  • Severity changed from 01 - Critical to 03 - Medium
Actions #3

Updated by Hammel about 1 year ago

  • Blocks Bug #945: Don't show date/time if no network connection is available. added
Actions #4

Updated by Hammel about 1 year ago

  • Severity changed from 03 - Medium to 02 - High
Actions #5

Updated by Hammel about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 10 to 100

Implemented, tested on hardware and is working.

Code committed and pushed.

Closing issue.

Actions

Also available in: Atom PDF