summaryrefslogtreecommitdiffstats
path: root/src/monitor/monitor_netlink.c
Commit message (Collapse)AuthorAgeFilesLines
* Provide libnl3 supportOndrej Kos2013-03-271-50/+100
| | | | | | | | | | | | | | | | https://fedorahosted.org/sssd/ticket/812 Update the monitor code to be using the new libnl3 API. Changed configure option --with-libnl By default, it tries to build with libnl3, if not found, then with libnl1, if this isn't found either, build proceeds without libnl, just with warning. Specifing --with-libnl=<libnl3|libnl1|no> checks for the specific given version, if not found, configure ends with error.
* Convert read and write operations to sss_atomic_readJakub Hrozek2012-04-201-11/+9
| | | | https://fedorahosted.org/sssd/ticket/1209
* netlink integration: ensure that interface name is NULL-terminatedJakub Hrozek2012-04-091-1/+2
| | | | | | In the unlikely case that the interface name was IFNAMSIZ bytes long or longer, strncpy wouldn't NULL-terminate the buffer. Copy one byte less to ensure the buffer is NULL-terminated.
* libnl: fix the path to phy80211 subdirectoryJakub Hrozek2012-02-231-4/+20
|
* Fix wrong buffer size in has_phy_80211_subdir()Jakub Hrozek2011-09-201-2/+3
| | | | https://fedorahosted.org/sssd/ticket/1002
* Subscribe to netlink route and addr messagesJakub Hrozek2011-09-061-5/+244
| | | | | | | | https://fedorahosted.org/sssd/ticket/955 In addition to carrier up messages, also subscribe to any messages describing that an address has been added or removed or routing table changed.
* Discard carrier messages from non-ethernet devicesJakub Hrozek2011-09-061-3/+155
| | | | | | | | | IFF_LOWER_UP has no meaning for wireless interfaces, it can mean that an association has been made with an access point, but it does not mean that an addressing has been completed. This patch discards "carrier up" messages from interfaces that do not look like ethernet devices.
* Change libnl monitor callback to only signal going onlineJakub Hrozek2011-09-061-3/+1
| | | | | | This feature was not used and would probably never be used, because it is much safer to rely on online actions to time out. Moreover, it would make implementing the new features more complex.
* Remove support for pre-1.1 netlinkStephen Gallagher2011-01-171-32/+0
| | | | | | | Netlink 1.0 and older is buggy and unreliable, occasionally causing tight-loops. We're no longer going to try to support it. https://fedorahosted.org/sssd/ticket/755
* Fix a typo on setup_netlink()Sumit Bose2010-11-241-1/+1
|
* Use netlink to detect going onlineJakub Hrozek2010-07-091-0/+406
Integrates libnl to detect adding routes. When a route is added, the offline status of all back ends is reset. This patch adds no heuristics to detect whether back end went offline. Fixes: #456