346d6d8bf5fdb446921d754c07c8a7d913a048d5 |
|
29-Jan-2018 |
René Genz <liebundartig@freenet.de> |
Fix minor spelling mistakes
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
1384d0ce6ea741aefb56b0006b6268d76e6cc2c2 |
|
30-Aug-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
netlink: Don't define USE_GNU
Applications should never #define USE_GNU themselves, but rather
_GNU_SOURCE. This patch removes USE_GNU and replaces it with including
config.h which has _GNU_SOURCE defined if applicable for that platform
See for example:
https://gcc.gnu.org/ml/fortran/2005-10/msg00365.html
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> |
a9d1b4b61b614a954c784f224b8fe7a47b6dd206 |
|
06-Apr-2016 |
Stephen Gallagher <sgallagh@redhat.com> |
Netlink: Ignore RTM_NEWADDR signals from link-local
We only need to go online if we receive a netlink signal that might
indicate that the external connection might have become available. This
will never be true for link-local addresses.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595 |
|
17-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
Add missing new lines to debug messages
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
fa0938a6e3cb928602633c3da0b909deb269369d |
|
14-Mar-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
Use pattern #elif defined(identifier)
We had in source code following pattern #elif HAVE_<name>
It worked because undefined identifier(in some cases) was evaluated to 0.
But we do not care about value of HAVE_SOMETHING. We just need to know
whether identifier was defined.
There is not equivalent to #ifdef (short for of #if definded)
We need to use long form: #elif defined HAVE_<name>
It causes also compiler warning with enabled compiler flag -Wundef.
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
83bf46f4066e3d5e838a32357c201de9bd6ecdfd |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Update DEBUG* invocations to use new levels
Use a script to update DEBUG* macro invocations, which use literal
numbers for levels, to use bitmask macros instead:
grep -rl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e 'use strict;
use File::Slurp;
my @map=qw"
SSSDBG_FATAL_FAILURE
SSSDBG_CRIT_FAILURE
SSSDBG_OP_FAILURE
SSSDBG_MINOR_FAILURE
SSSDBG_CONF_SETTINGS
SSSDBG_FUNC_DATA
SSSDBG_TRACE_FUNC
SSSDBG_TRACE_LIBS
SSSDBG_TRACE_INTERNAL
SSSDBG_TRACE_ALL
";
my $text=read_file(\*STDIN);
my $repl;
$text=~s/
^
(
.*
\b
(DEBUG|DEBUG_PAM_DATA|DEBUG_GR_MEM)
\s*
\(\s*
)(
[0-9]
)(
\s*,
)
(
\s*
)
(
.*
)
$
/
$repl = $1.$map[$3].$4.$5.$6,
length($repl) <= 80
? $repl
: $1.$map[$3].$4."\n".(" " x length($1)).$6
/xmge;
print $text;
' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
a3c8390d19593b1e5277d95bfb4ab206d4785150 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Make DEBUG macro invocations variadic
Use a script to update DEBUG macro invocations to use it as a variadic
macro, supplying format string and its arguments directly, instead of
wrapping them in parens.
This script was used to update the code:
grep -rwl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e \
'use strict;
use File::Slurp;
my $text=read_file(\*STDIN);
$text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs;
print $text;' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
6982b488e03b8e29e186f0c54cf5f80438cceadd |
|
24-Sep-2013 |
Jakub Hrozek <jhrozek@redhat.com> |
Convert IN_MULTICAST parameter to host order
https://fedorahosted.org/sssd/ticket/2087
IN_MULTICAST accepts address in the host order, but network order was
supplied. |
f2c346eaa486431ffa2a3adc05356159de834e2e |
|
11-Sep-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Fix formating of variables with type: uid_t |
539b1be3507abdf8ac235b06eeed5011b0b5cde2 |
|
27-Mar-2013 |
Ondrej Kos <okos@redhat.com> |
Provide libnl3 support
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. |
9d7d4458d94d0aac0a7edf999368eb18f89cb76a |
|
20-Apr-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Convert read and write operations to sss_atomic_read
https://fedorahosted.org/sssd/ticket/1209 |
39ed7bb0c0e1d4c431033b77cdeb176cfeae26e9 |
|
09-Apr-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
netlink integration: ensure that interface name is NULL-terminated
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. |
a4421a4261f73718e6b4c18c7bb9f020255e15c7 |
|
24-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
libnl: fix the path to phy80211 subdirectory |
5d98dce1111f04475e0d14ace9a4bcb876206fa5 |
|
20-Sep-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Fix wrong buffer size in has_phy_80211_subdir()
https://fedorahosted.org/sssd/ticket/1002 |
4e3495b3b8927a282adc48cc80f0611ecf79821b |
|
06-Sep-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Subscribe to netlink route and addr messages
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. |
172bf27813151351a1ff8284a3d524660eca2efe |
|
06-Sep-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Discard carrier messages from non-ethernet devices
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. |
4745ac57b7fb4ab071ee8f9b3386c5f4941a1561 |
|
06-Sep-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Change libnl monitor callback to only signal going online
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. |
5352c9b3609bca63814f9f6f03dbbbadf6c6333a |
|
17-Jan-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Remove support for pre-1.1 netlink
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 |
fa6c70fabb8dc2fab580a014cdcf1b0dd3e99554 |
|
24-Nov-2010 |
Sumit Bose <sbose@redhat.com> |
Fix a typo on setup_netlink() |
90acbcf20b5f896ca8f631923afe946c90d90de7 |
|
09-Jul-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Use netlink to detect going online
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 |