[PATCH] sctp: set the value of flowi6_oif to sk_bound_dev_if to make sctp_v6_get_dst to find the correct route entry.

2017-07-06 Thread Zheng Li
From: Zheng Li if there are several same route entries with different outgoing net device, application's socket specifies the oif through setsockopt with SO_BINDTODEVICE, sctpv6 should choose the route entry whose outgoing net device is the oif which was specified by socket, set the val

[PATCH] ipv6: Should use consistent conditional judgement for ip6 fragment between __ip6_append_data and ip6_finish_output

2016-12-28 Thread Zheng Li
From: Zheng Li There is an inconsistent conditional judgement between __ip6_append_data and ip6_finish_output functions, the variable length in __ip6_append_data just include the length of application's payload and udp6 header, don't include the length of ipv6 header, but in ip6_fin

[PATCH v2] ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output

2016-12-11 Thread Zheng Li
From: zheng li There is an inconsistent conditional judgement in __ip_append_data and ip_finish_output functions, the variable length in __ip_append_data just include the length of application's payload and udp header, don't include the length of ip header, but in ip_finish_output use

[PATCH] ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output

2016-12-08 Thread Zheng Li
From: zheng li There is an inconsitent conditional judgement in __ip_append_data and ip_finish_output functions, the variable length in __ip_append_data just include the length of applicatoin's payload and udp header, don't include the length of ip header, but in ip_finish_output use

[PATCH] ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output

2016-12-08 Thread Zheng Li
From: zheng li There is an inconsitent conditional judgement in __ip_append_data and ip_finish_output functions, the variable length in __ip_append_data just include the length of applicatoin's payload and udp header, don't include the length of ip header, but in ip_finish_output