Commit cd60d0da authored by Sebastian Smolorz via Xenomai's avatar Sebastian Smolorz via Xenomai Committed by Jan Kiszka

net/tcp: Fix bug when obtaining RST socket's private structure from its rtdm_fd pointer

Signed-off-by: 's avatarSebastian Smolorz <sebastian.smolorz@gmx.de>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent d6545974
......@@ -182,7 +182,7 @@ static struct {
} rst_socket_container;
#define rst_fd (&rst_socket_container.dummy.fd)
#define rst_socket (*(struct tcp_socket *)rtdm_private_to_fd(rst_fd))
#define rst_socket (*(struct tcp_socket *)rtdm_fd_to_private(rst_fd))
static u32 tcp_auto_port_start = 1024;
static u32 tcp_auto_port_mask = ~(RT_TCP_SOCKETS-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment