On 9/9/16 12:26 PM, Cyrill Gorcunov wrote: > In criu we are actively using diag interface to collect sockets > present in the system when dumping applications. And while for > unix, tcp, udp[lite], packet, netlink it works as expected, > the raw sockets do not have. Thus add it. > > CC: David S. Miller <da...@davemloft.net> > CC: Eric Dumazet <eric.duma...@gmail.com> > CC: Alexey Kuznetsov <kuz...@ms2.inr.ac.ru> > CC: James Morris <jmor...@namei.org> > CC: Hideaki YOSHIFUJI <yoshf...@linux-ipv6.org> > CC: Patrick McHardy <ka...@trash.net> > CC: Andrey Vagin <ava...@openvz.org> > CC: Stephen Hemminger <step...@networkplumber.org> > Signed-off-by: Cyrill Gorcunov <gorcu...@openvz.org> > ---
Would you mind adding the destroy capability as well? The udp version should be close to what is needed for raw sockets. See udp_diag_destroy and udp_abort.