Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net mgmt socket fixes #69424

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion subsys/net/lib/shell/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ int walk_sockets(struct k_obj_core *obj_core, void *user_data)
PR("%25s %-12s %c%c%c\t%-5s%-13d %-10" PRId64 "%-10" PRId64 "\n",
thread_name, obj->reg->name,
obj->socket_family == AF_INET6 ? '6' :
(obj->socket_family ? '4' : ' '),
(obj->socket_family == AF_INET ? '4' :
(obj->socket_family == AF_NET_MGMT ? 'M' : ' ')),
obj->socket_type == SOCK_DGRAM ? 'D' :
(obj->socket_type == SOCK_STREAM ? 'S' :
(obj->socket_type == SOCK_RAW ? 'R' : ' ')),
Expand Down
3 changes: 2 additions & 1 deletion subsys/net/lib/sockets/sockets_net_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ static ssize_t net_mgmt_sock_write(void *obj, const void *buffer,
static int net_mgmt_sock_ioctl(void *obj, unsigned int request,
va_list args)
{
return 0;
errno = EOPNOTSUPP;
return -1;
}

static int net_mgmt_sock_bind(void *obj, const struct sockaddr *addr,
Expand Down
Loading