netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iproute2: Add dsfield as alias for tos for ip rules
@ 2010-05-21 14:10 Arnd Hannemann
  2010-07-23 20:22 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Hannemann @ 2010-05-21 14:10 UTC (permalink / raw)
  To: shemminger; +Cc: netdev, Arnd Hannemann

From: Arnd Hannemann <arnd@rhea.(none)>

Get ip rule parsing of "dsfield" in sync with ip route parsing and manual page.

Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
---
 ip/iprule.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ip/iprule.c b/ip/iprule.c
index 7140375..cbf8226 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -270,7 +270,8 @@ static int iprule_modify(int cmd, int argc, char **argv)
 			if (get_u32(&pref, *argv, 0))
 				invarg("preference value is invalid\n", *argv);
 			addattr32(&req.n, sizeof(req), FRA_PRIORITY, pref);
-		} else if (strcmp(*argv, "tos") == 0) {
+		} else if (strcmp(*argv, "tos") == 0 ||
+			   matches(*argv, "dsfield") == 0) {
 			__u32 tos;
 			NEXT_ARG();
 			if (rtnl_dsfield_a2n(&tos, *argv))
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iproute2: Add dsfield as alias for tos for ip rules
  2010-05-21 14:10 [PATCH] iproute2: Add dsfield as alias for tos for ip rules Arnd Hannemann
@ 2010-07-23 20:22 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2010-07-23 20:22 UTC (permalink / raw)
  To: Arnd Hannemann; +Cc: shemminger, netdev

On Fri, 21 May 2010 16:10:09 +0200
Arnd Hannemann <hannemann@nets.rwth-aachen.de> wrote:

> From: Arnd Hannemann <arnd@rhea.(none)>
> 
> Get ip rule parsing of "dsfield" in sync with ip route parsing and manual page.
> 
> Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
> ---
>  ip/iprule.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/ip/iprule.c b/ip/iprule.c
> index 7140375..cbf8226 100644
> --- a/ip/iprule.c
> +++ b/ip/iprule.c
> @@ -270,7 +270,8 @@ static int iprule_modify(int cmd, int argc, char **argv)
>  			if (get_u32(&pref, *argv, 0))
>  				invarg("preference value is invalid\n", *argv);
>  			addattr32(&req.n, sizeof(req), FRA_PRIORITY, pref);
> -		} else if (strcmp(*argv, "tos") == 0) {
> +		} else if (strcmp(*argv, "tos") == 0 ||
> +			   matches(*argv, "dsfield") == 0) {
>  			__u32 tos;
>  			NEXT_ARG();
>  			if (rtnl_dsfield_a2n(&tos, *argv))

Applied

-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-23 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 14:10 [PATCH] iproute2: Add dsfield as alias for tos for ip rules Arnd Hannemann
2010-07-23 20:22 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).