Comments (1)
1.) yes, the documentation is wrong. It's fixed now: 3dd2a0f
The behavior was changed with version 3.2.22: 375a629
See for example how NetworkManager handles this.
2.)
In case where socket is non-blocking and recvmsg() returns 0 (this happens when we get EPOLLERR on that soket), do libnl APIs inform caller when other end closes connection i.e when recvmsg() inside nl_recv return 0 ?
libnl does not seem to have a way to let app know about this case.
How do you mean "inform"? No, nl_recv()
is only a wrapper around recv
. epoll tells you about the state of the file descriptor and whether you can read from it. See the manual for recv()
.
3.)
Why am i getting EPOLLERR in epoll_wait() on netlink socket ? is this because other side of netlink ie kernel side closed connection ?
even if kernel side closed connection why non-stop repeated EPOLLERR s on netlink sockets ?
It is a question about how epoll works with netlink sockets. I don't know the details.
from libnl.
Related Issues (20)
- Provide build instructions HOT 2
- Duplicated rtnl_link entries in nl_cache HOT 5
- Changes in IPv6 nexthops cause nl_cache_mngr routes to have duplicate nexthops. HOT 6
- Compile error with bison 3.8 - yyerror - conflicting types - static declaration follows non-static declaration - POSIX Yacc does not support HOT 1
- No cache support for genl HOT 2
- test case can not be automatically executed after the make check is exceuted HOT 1
- Build failure with tests in 3.6.0 (check-direct.c:17: undefined reference to `_nltst_map_stat_id_from_IPSTATS_MIB_v2') HOT 7
- 3.6.0: pytest is failing on python module HOT 6
- Test failure with 3.6.0 (nl-test-util.c:69:S:Core:cache_and_clone:0: Assertion 'f' failed) HOT 15
- Construction of nl_msg message with multiple headers HOT 3
- Cache operations aren't sensitive to flush operations HOT 2
- Cross Compilation Steps HOT 1
- CMakeLists.txt for libnl ? HOT 1
- support for nexthops HOT 4
- CVE-2022-20385 HOT 7
- Implement LWTUNNEL_ENCAP_SEG6_LOCAL
- Remove affected routes from cache on interface down? HOT 1
- TC action stats are not updated HOT 1
- The delete command does not take effect.
- xfrm lib missing the set/get for if_id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnl.