Skip to content

Conversation

@zhhyu7
Copy link
Contributor

@zhhyu7 zhhyu7 commented Jan 14, 2026

Summary

urgent data needs to be treated as normal data when CONFIG_NET_TCPURGDATA disable. some test sets will verify this behavior, correct the processing logic.

Impact

tcp urgent data.

Testing

sim:matter with host and disable CONFIG_NET_TCPURGDATA.
test code on the host:

#define SERVER_IP "10.0.1.2"
#define PORT 7777
#define BUFFER_SIZE 1024

sockfd = socket(AF_INET, SOCK_STREAM, 0);
connect(sockfd, (struct sockaddr *)&server_addr, sizeof(server_addr));
send(sockfd, "oob", strlen("oob"), MSG_OOB);
send(sockfd, "hello", strlen("hello"), 0);

test code on the NuttX:

#define SERVER_IP "0.0.0.0"
#define PORT 7777
#define BUFFER_SIZE 1024

server_fd = socket(AF_INET, SOCK_STREAM, 0);
bind(server_fd, (struct sockaddr *)&server_addr, sizeof(server_addr));
listen(server_fd, 5);
client_fd = accept(server_fd, (struct sockaddr *)&client_addr, &addr_len);
ret = recv(client_fd, buffer, BUFFER_SIZE, 0);
printf("Received message: [%d] %s\n", ret, buffer);

test log without this change:

NuttShell (NSH) NuttX-12.12.0
MOTD: username=admin password=Administrator
nsh> hello
Received message: [5] hello
nsh> 

test log with this change:

NuttShell (NSH) NuttX-12.12.0
MOTD: username=admin password=Administrator
nsh> hello
Received message: [8] oobhello
nsh>

urgent data needs to be treated as normal data when
CONFIG_NET_TCPURGDATA disable. some test sets will verify this
behavior, correct the processing logic.

Signed-off-by: zhanghongyu <[email protected]>
@github-actions github-actions bot added Area: Networking Effects networking subsystem Size: S The size of the change in this PR is small labels Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Networking Effects networking subsystem Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants