* [MPTCP] Re: [PATCH] mptcp: Allow ip mptcp endpoint show
@ 2020-08-03 17:38 Christoph Paasch
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Paasch @ 2020-08-03 17:38 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]
On 08/03/20 - 19:23, Davide Caratti wrote:
> On Mon, 2020-08-03 at 10:10 -0700, Christoph Paasch wrote:
> > The intention was to dump the entire address-list when no ID is given.
> > However, the condition needs to rather check on argc as argv will always
> > be != NULL.
> >
> > Fixes: 7e0767cd862b ("add support for mptcp netlink interface")
> > Signed-off-by: Christoph Paasch <cpaasch(a)apple.com>
> > ---
> > ip/ipmptcp.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c
> > index bc12418bd39c..df38754c82b6 100644
> > --- a/ip/ipmptcp.c
> > +++ b/ip/ipmptcp.c
> > @@ -273,7 +273,7 @@ static int mptcp_addr_show(int argc, char **argv)
> > struct nlmsghdr *answer;
> > int ret;
> >
> > - if (!argv)
> > + if (argc == 0)
> > return mptcp_addr_dump();
> >
> > ret = mptcp_parse_opt(argc, argv, &req.n, false);
>
> I think I saw already this patch :-)
Interesting, I was on origin/master and not origin/main ... well, well... :-)
Christoph
>
> https://lore.kernel.org/netdev/20200724121718.2180511-1-matthieu.baerts(a)tessares.net
>
> --
> davide
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [MPTCP] Re: [PATCH] mptcp: Allow ip mptcp endpoint show
@ 2020-08-03 18:19 Matthieu Baerts
0 siblings, 0 replies; 3+ messages in thread
From: Matthieu Baerts @ 2020-08-03 18:19 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]
Hi Christoph,
On 03/08/2020 19:38, Christoph Paasch wrote:
> On 08/03/20 - 19:23, Davide Caratti wrote:
>> On Mon, 2020-08-03 at 10:10 -0700, Christoph Paasch wrote:
>>> The intention was to dump the entire address-list when no ID is given.
>>> However, the condition needs to rather check on argc as argv will always
>>> be != NULL.
>>>
>>> Fixes: 7e0767cd862b ("add support for mptcp netlink interface")
>>> Signed-off-by: Christoph Paasch <cpaasch(a)apple.com>
>>> ---
>>> ip/ipmptcp.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c
>>> index bc12418bd39c..df38754c82b6 100644
>>> --- a/ip/ipmptcp.c
>>> +++ b/ip/ipmptcp.c
>>> @@ -273,7 +273,7 @@ static int mptcp_addr_show(int argc, char **argv)
>>> struct nlmsghdr *answer;
>>> int ret;
>>>
>>> - if (!argv)
>>> + if (argc == 0)
>>> return mptcp_addr_dump();
>>>
>>> ret = mptcp_parse_opt(argc, argv, &req.n, false);
>>
>> I think I saw already this patch :-)
>
> Interesting, I was on origin/master and not origin/main ... well, well... :-)
Yeah, I didn't see that directly as well!
I am not sure it is a good idea to switch to a new default branch while
still leaving "master" alive without any dedicated commit :)
Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* [MPTCP] Re: [PATCH] mptcp: Allow ip mptcp endpoint show
@ 2020-08-03 17:23 Davide Caratti
0 siblings, 0 replies; 3+ messages in thread
From: Davide Caratti @ 2020-08-03 17:23 UTC (permalink / raw)
To: mptcp
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
On Mon, 2020-08-03 at 10:10 -0700, Christoph Paasch wrote:
> The intention was to dump the entire address-list when no ID is given.
> However, the condition needs to rather check on argc as argv will always
> be != NULL.
>
> Fixes: 7e0767cd862b ("add support for mptcp netlink interface")
> Signed-off-by: Christoph Paasch <cpaasch(a)apple.com>
> ---
> ip/ipmptcp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c
> index bc12418bd39c..df38754c82b6 100644
> --- a/ip/ipmptcp.c
> +++ b/ip/ipmptcp.c
> @@ -273,7 +273,7 @@ static int mptcp_addr_show(int argc, char **argv)
> struct nlmsghdr *answer;
> int ret;
>
> - if (!argv)
> + if (argc == 0)
> return mptcp_addr_dump();
>
> ret = mptcp_parse_opt(argc, argv, &req.n, false);
I think I saw already this patch :-)
https://lore.kernel.org/netdev/20200724121718.2180511-1-matthieu.baerts(a)tessares.net
--
davide
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-03 18:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 17:38 [MPTCP] Re: [PATCH] mptcp: Allow ip mptcp endpoint show Christoph Paasch
-- strict thread matches above, loose matches on Subject: below --
2020-08-03 18:19 Matthieu Baerts
2020-08-03 17:23 Davide Caratti
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.