summaryrefslogtreecommitdiff
path: root/libndp/ndp_private.h
Commit message (Collapse)AuthorAgeFilesLines
* libndp: use thread local variables for static return argumentsThomas Haller2021-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | libndp should be thread safe. That doesn't mean, that one "struct ndp" can be used by multiple threads without locking. But it should be reasonably possible to use the library in a multi threaded scenario. Some API functions return values that are cached in static variables. That makes these function (and the entire library) not thread safe. Fix that by using gcc's __thread specifier for thread local storage. This is also supported by clang. Currently, it's not clear whether all compiler that libndp supports, support this. I expect that to be the case. Hence, the NDP_THREAD define does not try to workaround such (yet unknown) build environments. However, if the need arises, we can easily extend the NDP_THREAD define with some conditional compilation. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Jiri Pirko <jiri@nvidia.com>
* update copyright datesJiri Pirko2015-04-021-1/+1
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for DNS Search List (rfc6106)Jiri Pirko2013-04-171-0/+10
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for Recursive DNS Server (rfc6106)Jiri Pirko2013-04-121-0/+9
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for Route Information Option (rfc4191)Jiri Pirko2013-04-051-2/+13
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* initialJiri Pirko2013-03-151-0/+85
Signed-off-by: Jiri Pirko <jiri@resnulli.us>