diff options
author | Zhang Changzhong <zhangchangzhong@huawei.com> | 2020-08-05 11:50:22 +0800 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-08-15 11:12:57 +0200 |
commit | f4fd77fd87e9b214c26bb2ebd4f90055eaea5ade (patch) | |
tree | 4e2f4ef9e4d0a0fdf4e7a29c2e87fa6dd8c23a3c /net/wireless/core.h | |
parent | 4ca0d9ac3fd8f9f90b72a15d8da2aca3ffb58418 (diff) |
can: j1939: fix support for multipacket broadcast message
Currently j1939_tp_im_involved_anydir() in j1939_tp_recv() check the previously
set flags J1939_ECU_LOCAL_DST and J1939_ECU_LOCAL_SRC of incoming skb, thus
multipacket broadcast message was aborted by receive side because it may come
from remote ECUs and have no exact dst address. Similarly, j1939_tp_cmd_recv()
and j1939_xtp_rx_dat() didn't process broadcast message.
So fix it by checking and process broadcast message in j1939_tp_recv(),
j1939_tp_cmd_recv() and j1939_xtp_rx_dat().
Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1596599425-5534-2-git-send-email-zhangchangzhong@huawei.com
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/wireless/core.h')
0 files changed, 0 insertions, 0 deletions