From a7c19fc9a45b5a1f4d9a91f14184eb7d51b03800 Mon Sep 17 00:00:00 2001 From: Li Zhou Date: Mon, 2 Sep 2019 13:42:46 +0800 Subject: tipcutils: ptts: Set recv buffer size to max to receive as many packets as possible Flooding multicast may make the rcv buffer overrun and is considered premature messages later and thus cause the following error. "Ignoring premature msg 16, currently handling 12" This patch sets SO_RCVBUF the of socket to max int value to receive as many packets as possible, and give a hint to user when possible overrun occurs. Note that the value of SO_RCVBUF will be limited up to min(INT_MAX/2, sysctl_rmem_max) in kernel. Signed-off-by: Li Zhou Signed-off-by: Khem Raj --- meta-oe/recipes-extended/tipcutils/tipcutils_git.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-oe/recipes-extended/tipcutils/tipcutils_git.bb') diff --git a/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb b/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb index 054e0acc88..637770af24 100644 --- a/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb +++ b/meta-oe/recipes-extended/tipcutils/tipcutils_git.bb @@ -6,6 +6,7 @@ SRC_URI = "git://git.code.sf.net/p/tipc/tipcutils \ file://0001-include-sys-select.h-for-FD_-definitions.patch \ file://0002-replace-non-standard-uint-with-unsigned-int.patch \ file://0001-multicast_blast-tipcc-Fix-struct-type-for-TIPC_GROUP.patch \ + file://0001-test-ptts-Set-recv-buffer-size-too-max-to-receive-as.patch \ " SRCREV = "7ab2211b87414ba240b0b2e4af219c1057c9cf9a" PV = "2.2.0+git${SRCPV}" -- cgit 1.2.3-korg