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

Set system hostname when initializing interface #49

Merged
merged 1 commit into from Feb 9, 2024

Conversation

andreittr
Copy link
Contributor

Description of Changes

This change makes lwip set the system hostname to the one it receives during initialization, using the sethostname library call.

Depends on the following core Unikraft PR:

Testing

Syscalls such as uname or gethostname should return the same hostname as passed to lwip through the netdev.ip kernel parameter.

@razvand razvand self-assigned this Feb 5, 2024
@razvand razvand added the enhancement New feature or request label Feb 5, 2024
Copy link
Member

@eduardvintila eduardvintila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Reviewed-by: Eduard Vintilă eduard.vintila47@gmail.com

Copy link

@andreistan26 andreistan26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Reviewed-by: Andrei Stan andreistan2003@gmail.com

@skuenzer skuenzer self-assigned this Feb 9, 2024
uknetdev.c Show resolved Hide resolved
This change makes lwip set the system hostname to the one it receives
during initialization, using the `sethostname` library call.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Copy link
Member

@skuenzer skuenzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved-by: Simon Kuenzer simon@unikraft.io

@skuenzer skuenzer changed the base branch from staging to staging-49 February 9, 2024 20:08
@skuenzer skuenzer merged commit 5de806b into unikraft:staging-49 Feb 9, 2024
skuenzer pushed a commit that referenced this pull request Feb 9, 2024
This change makes lwip set the system hostname to the one it receives
during initialization, using the `sethostname` library call.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Simon Kuenzer <simon@unikraft.io>
GitHub-Closes: #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants