get_state function reports UNKNOWN before processing first rtnetlink event

Bug #454885 reported by Alexander Sack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntrack
Fix Released
High
Unassigned

Bug Description

Example: mtest-gmonitor test yields:

./glib/test/mtest-gmonitor
** Message: _ntrack_event_callback: event=1
** Message: _ntrack_state_changed_callback: old=3, new=1
** Message: _ntrack_event_callback: event=0
** Message: _ntrack_state_changed_callback: old=1, new=0

The bug here is that old = 3 (unkown) should never happen. instead first "old" should be 0

Related branches

Alexander Sack (asac)
Changed in ntrack:
importance: Undecided → High
status: New → Triaged
summary: - ntrack get_state function reports UNKNOWN until first netlink event was
- processed
+ ntrack get_state function reports UNKNOWN before processing first
+ rtnetlink event
summary: - ntrack get_state function reports UNKNOWN before processing first
- rtnetlink event
+ get_state function reports UNKNOWN before processing first rtnetlink
+ event
Revision history for this message
Alexander Sack (asac) wrote :

bzr commit --fixes lp:454885 -m "common: don't overwrite monitor online state after arch backend was initialized (LP: #454885)"
Committing to: /home/asac/Development/upstream/asac/ntrack/
modified common/ntrack-libnl.c
modified common/ntrackmonitor.c
Committed revision 109.

Changed in ntrack:
status: Triaged → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

ntrack 003 released

Changed in ntrack:
milestone: none → 003
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.