summaryrefslogtreecommitdiff
path: root/src/monitor/monitor_netlink.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-24Convert IN_MULTICAST parameter to host orderJakub Hrozek1-1/+1
https://fedorahosted.org/sssd/ticket/2087 IN_MULTICAST accepts address in the host order, but network order was supplied.
2013-09-11Fix formating of variables with type: uid_tLukas Slebodnik1-2/+3
2013-03-27Provide libnl3 supportOndrej Kos1-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.
2012-04-20Convert read and write operations to sss_atomic_readJakub Hrozek1-11/+9
https://fedorahosted.org/sssd/ticket/1209
2012-04-09netlink integration: ensure that interface name is NULL-terminatedJakub Hrozek1-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.
2012-02-23libnl: fix the path to phy80211 subdirectoryJakub Hrozek1-4/+20
2011-09-20Fix wrong buffer size in has_phy_80211_subdir()Jakub Hrozek1-2/+3
https://fedorahosted.org/sssd/ticket/1002
2011-09-06Subscribe to netlink route and addr messagesJakub Hrozek1-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.
2011-09-06Discard carrier messages from non-ethernet devicesJakub Hrozek1-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.
2011-09-06Change libnl monitor callback to only signal going onlineJakub Hrozek1-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.
2011-01-17Remove support for pre-1.1 netlinkStephen Gallagher1-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
2010-11-24Fix a typo on setup_netlink()Sumit Bose1-1/+1
2010-07-09Use netlink to detect going onlineJakub Hrozek1-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