[09/15] inet: raw -- Add preloading raw_diag module

Submitted by Cyrill Gorcunov on Sept. 13, 2018, 7:57 p.m.

Details

Message ID 20180913195758.30566-10-gorcunov@gmail.com
State Accepted
Series "net: Add support for raw inet sockets"
Headers show

Commit Message

Cyrill Gorcunov Sept. 13, 2018, 7:57 p.m.
Just like we do for other protocols.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/sockets.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/sockets.c b/criu/sockets.c
index bd4e1a967a51..e5b31175264b 100644
--- a/criu/sockets.c
+++ b/criu/sockets.c
@@ -255,6 +255,9 @@  void preload_socket_modules(void)
 	req.r.i.sdiag_protocol = IPPROTO_UDP; /* UDLITE is merged with UDP */
 	probe_diag(nl, &req, -ENOENT);
 
+	req.r.i.sdiag_protocol = IPPROTO_RAW;
+	probe_diag(nl, &req, -ENOENT);
+
 	close(nl);
 	pr_info("Done probing\n");
 }