[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] networking/interface.c: Don't print all-zero addresses for unspec_hwtype
From:       Markus Gothe <nietzsche () lysator ! liu ! se>
Date:       2019-10-24 15:18:38
Message-ID: 3j5j6si6uhq6v4gcd66pe94q.1571930318440 () lysator ! liu ! se
[Download RAW message or body]

Not expected and default behavior are two different matters :-), as I am concerned I \
can see this breaking scripts.

I totally agree with you that is not expected however many things are not expected \
for tunneling / point-to-point interfaces as well.

//M

Sent from my BlackBerry — the most secure mobile device


	  Original Message  



From: bunk@stusta.de
Sent: 24 October 2019 17:10
To: nietzsche@lysator.liu.se
Cc: busybox@busybox.net
Subject: Re: [PATCH] networking/interface.c: Don't print all-zero addresses for \
unspec_hwtype


On Thu, Oct 24, 2019 at 04:17:48PM +0200, Markus Gothe wrote:
> But it is an expected behavior, right?

When using a point-to-point protocol without any HWaddr
it is not expected to see a HWaddr printed.

> //M
> 
> From: bunk@stusta.de
> Sent: 24 October 2019 16:03
> To: busybox@busybox.net
> Subject: [PATCH] networking/interface.c: Don't print all-zero addresses for \
> unspec_hwtype 
> 
> This is not useful information for raw IP qmi_wwan modems:
> wwan0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> ---
> networking/interface.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/networking/interface.c b/networking/interface.c
> index e5e55d8d4..137e534f7 100644
> --- a/networking/interface.c
> +++ b/networking/interface.c
> @@ -673,10 +673,11 @@ static int do_if_fetch(struct interface *ife)
> }
> 
> static const struct hwtype unspec_hwtype = {
> - .name = "unspec",
> - .title = "UNSPEC",
> - .type = -1,
> - .print = UNSPEC_print
> + .name = "unspec",
> + .title = "UNSPEC",
> + .type = -1,
> + .print = UNSPEC_print,
> + .suppress_null_addr = 1,
> };
> 
> static const struct hwtype loop_hwtype = {
> --
> 2.20.1
> 
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic