Cyrill Gorcunov
5813cd0b55
util-net: Switch send_fd/recv_fd to use scm_fdset structure
...
To be able to use scm_fdset structure the two helpers
added scm_fdset_init_chunk and scm_fdset_init.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org >
Signed-off-by: Pavel Emelyanov <xemul@parallels.com >
2012-03-29 15:14:19 +04:00
Cyrill Gorcunov
9bb93f7e18
net: Fix typo in recv_fd
...
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org >
Signed-off-by: Pavel Emelyanov <xemul@parallels.com >
2012-03-16 20:46:49 +04:00
Cyrill Gorcunov
39976326c9
util-net: Make sure that there is real data in message
...
Otherwise weird address might be dereferenced.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org >
Acked-by: Pavel Emelyanov <xemul@parallels.com >
2012-02-14 17:18:09 +04:00
Cyrill Gorcunov
f130df9234
util-net: Zeroify structures
...
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org >
Acked-by: Pavel Emelyanov <xemul@parallels.com >
2012-02-14 17:18:09 +04:00
Andrey Vagin
1465fade3b
util: move recv_fd and send_fd in a separate file
...
It will be used in the parasite
Signed-off-by: Andrey Vagin <avagin@openvz.org >
Acked-by: Pavel Emelyanov <xemul@parallels.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org >
2012-02-01 19:26:41 +04:00