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

[nrf fromtree] net: dhcpv4: Implement DHCPv4 server #1459

Merged
merged 9 commits into from
Jan 23, 2024

Conversation

rlubos
Copy link
Contributor

@rlubos rlubos commented Jan 19, 2024

No description provided.

The trickle algorithm files are clearly a library so move
them under lib/ directory.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit b6d9ed0)
The socket service provides a similar functionality as what
initd provides in Linux. It listens user registered sockets
for any activity and then launches a k_work for it. This way
each application does not need to create a thread to listen
a blocking socket.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit eff5d02)
…e name

Nothing critical, but it just looks better if the service name is
separated from the prefix, i.e:
    _z_net_socket_service_idx_udp_service_async
vs current:
    _z_net_socket_service_idxudp_service_async

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 3111b80)
The iterable section should be located in ROM and not RAM, this caused
crashes on multiple platforms running socket services.

Fixes #67762

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 8ad0e57)
So that it's possible to register ARP entries manually. Needed for DHCP
server implementation, which in unicast mode needs to reply to an IP
address that is not registered on the peer interface yet (hence no ARP
reply will be sent). It's needed to add an ARP entry manually in that
case, as hardware address is already known at that point.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 1d14f13)
Add a helper function to obtain IPv4 netmask configured on an interface.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit db80ed3)
Add basic socket-based implementation of DHCPv4 sever.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 1e08bbd)
…DHCPv4 server

Increase socket services thread default stack size when DHCPv4 server is
enabled, as it uses synchronous processing.

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 3bc5087)
Implement DHCPv4 shell module, which allows to start/stop DHCPv4 server
operation, and print server status (address leases).

Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit 2c70c5d)
@rlubos rlubos force-pushed the ncs/net/dhcpv4-server branch from 59dfa82 to 0aef871 Compare January 22, 2024 12:06
@rlubos
Copy link
Contributor Author

rlubos commented Jan 22, 2024

Just updated sauce tags to fromtree in recent push.

@rlubos rlubos merged commit d97e4bc into nrfconnect:main Jan 23, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants