[CRIU] [PATCH] crtools: add addr string to opts.
Pavel Emelyanov
xemul at parallels.com
Mon Aug 12 05:32:04 EDT 2013
On 08/11/2013 10:02 PM, Ruslan Kuprieiev wrote:
> On 09.08.2013 11:48, Pavel Emelyanov wrote:
> Thank you for your explanations.
> Here is one more try.
> @@ -288,6 +285,14 @@ int main(int argc, char *argv[])
> return -1;
> }
>
> + /* Convert char *addr to sockaddr_in ps_addr if command != service */
What if we introduce another command that would require some --address? Will
we have to patch this place again?
> + if (opts.addr && strcmp(argv[optind], "service")) {
> + if (!inet_aton(opts.addr, &opts.ps_addr.sin_addr)) {
> + pr_perror("Bad address");
> + return -1;
> + }
> + }
> +
> if (optind >= argc)
> goto usage;
>
More information about the CRIU
mailing list