Re: [PATCH iproute2-next] geneve: fix ttl inherit behavior

2018-09-27 Thread Hangbin Liu
On Thu, Sep 27, 2018 at 11:08:36AM +0200, Phil Sutter wrote: > On Thu, Sep 27, 2018 at 03:27:37PM +0800, Hangbin Liu wrote: > > Currently when we add geneve with "ttl inherit", we set ttl to 0, which > > is actually use whatever default value instead of inherit the inner > > protocol's ttl value. >

Re: [PATCH iproute2-next] geneve: fix ttl inherit behavior

2018-09-27 Thread Phil Sutter
On Thu, Sep 27, 2018 at 03:27:37PM +0800, Hangbin Liu wrote: > Currently when we add geneve with "ttl inherit", we set ttl to 0, which > is actually use whatever default value instead of inherit the inner > protocol's ttl value. > > To respect compatibility with old behavior and make a difference

[PATCH iproute2-next] geneve: fix ttl inherit behavior

2018-09-27 Thread Hangbin Liu
Currently when we add geneve with "ttl inherit", we set ttl to 0, which is actually use whatever default value instead of inherit the inner protocol's ttl value. To respect compatibility with old behavior and make a difference between ttl inherit and ttl == 0, we add an attribute IFLA_GENEVE_TTL_I