[Devel] [PATCH 3/3] net: do iptables restore in ve0

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Mon Jul 24 19:09:39 MSK 2017



24 июля 2017 г. 7:04 PM пользователь Kirill Gorkunov <gorcunov at virtuozzo.com> написал:
On Mon, Jul 24, 2017 at 06:52:31PM +0300, Stanislav Kinsburskiy wrote:
>
> >> int join_ve(pid_t pid, bool veX)
> >
> > Does pid have to be 0 in this case?
> >
>
> Maybe interface to this helper should be reworked?

In criu/cr_restore.c

#define join_veX(pid)   join_ve(pid, true)
#define join_ve0(pid)   join_ve(pid, false)

Well, no. I don't like this defines.
And I don't think that pid has to be explicitly provided. At least for ve0.
But frankly, I don't want to do it anyways.


Just move it to the header, and that;s all

        Cyrill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/devel/attachments/20170724/03e077b1/attachment.html>


More information about the Devel mailing list