Start/stop statistics depending on LOWER_UP state
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 7 Jul 2010 16:03:15 +0000 (18:03 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Jul 2010 18:06:55 +0000 (15:06 -0300)
commit403855f939a16c2195532da396f4d1587a833ffb
treecd4400b8d6dd59a7d65d8ff7c530fb70244c0232
parentfda8614ef6375431082109a587b416faf9e02707
Start/stop statistics depending on LOWER_UP state

The statistic counters should be updated as soon the
interface enters LOWER_UP state ('cable' connected).

Therefore we do not depend on the state of the
Service object, which fixes also the shortcoming
we have currently with private connections. Those
services do not enter the ONLINE state.

At least for ethernet the lower_up callback
has not been called because the service was
created 'too late'.
src/ipconfig.c
src/service.c