Re: [PATCH net] rtnetlink: Fix the IFLA_PHYS_PORT_NAME TLV to include terminating NULL

2017-05-09 Thread Yotam Gigi
On 05/09/2017 03:31 PM, Tobias Klauser wrote: > On 2017-05-09 at 14:12:02 +0200, Yotam Gigi wrote: >> The IFLA_PHYS_PORT_NAME rtnetlink TLV length does not include the >> terminating NULL character, which is different from other string typed >> TLVs. Due to the fact that libnl checks for the termi

Re: [PATCH net] rtnetlink: Fix the IFLA_PHYS_PORT_NAME TLV to include terminating NULL

2017-05-09 Thread Tobias Klauser
On 2017-05-09 at 14:12:02 +0200, Yotam Gigi wrote: > The IFLA_PHYS_PORT_NAME rtnetlink TLV length does not include the > terminating NULL character, which is different from other string typed > TLVs. Due to the fact that libnl checks for the terminating NULL in every > string typed attribute, it c

[PATCH net] rtnetlink: Fix the IFLA_PHYS_PORT_NAME TLV to include terminating NULL

2017-05-09 Thread Yotam Gigi
The IFLA_PHYS_PORT_NAME rtnetlink TLV length does not include the terminating NULL character, which is different from other string typed TLVs. Due to the fact that libnl checks for the terminating NULL in every string typed attribute, it crashes on every RTM_GETLINK response on drivers that impleme