[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130515095322.275c9b2f@nehalam.linuxnetplumber.net>
Date: Wed, 15 May 2013 09:53:22 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: David Stevens <dlstevens@...ibm.com>
Cc: Cong Wang <amwang@...hat.com>, netdev@...r.kernel.org,
netdev-owner@...r.kernel.org
Subject: Re: [Patch iproute2] vxlan: use 8472 as default dst port
On Wed, 15 May 2013 07:32:28 -0400
David Stevens <dlstevens@...ibm.com> wrote:
> netdev-owner@...r.kernel.org wrote on 05/15/2013 07:11:10 AM:
>
> > From: Cong Wang <amwang@...hat.com>
>
> > Cc: Stephen Hemminger <stephen@...workplumber.org>
> > Signed-off-by: Cong Wang <amwang@...hat.com>
> >
> > ---
> > diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
> > index 2d93ee2..a0c90b3 100644
> > --- a/ip/iplink_vxlan.c
> > +++ b/ip/iplink_vxlan.c
> > @@ -53,7 +53,7 @@ static int vxlan_parse_opt(struct link_util *lu,
> > int argc, char **argv,
> > __u8 noage = 0;
> > __u32 age = 0;
> > __u32 maxaddr = 0;
> > - __u16 dstport = 4789;
> > + __u16 dstport = 8472;
>
> I think this should be "0"; then it will use the kernel port,
> whatever it is.
>
> > @@ -188,8 +188,7 @@ static int vxlan_parse_opt(struct link_util *lu,
> > int argc, char **argv,
> > if (range.low || range.high)
> > addattr_l(n, 1024, IFLA_VXLAN_PORT_RANGE,
> > &range, sizeof(range));
> > - if (dstport)
> > - addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport));
> > + addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport));
>
> ...and these lines should be left alone. If not specified,
> it won't pass an alternate port and will use the kernel default.
>
> +-DLS
>
>
No. I want all users to get the IANA assigned port unless they specifically
override it. For compatibility kernel can't change to the IANA value
but user space needs to nudge users in the correct direction.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists