mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 18:15:32 +08:00
Do not set mulitcast hostname in sethostname()
This commit is contained in:
parent
0bed8d964c
commit
4153ebe419
@ -56,9 +56,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/smp.h>
|
#include <sys/smp.h>
|
||||||
#include <sys/sx.h>
|
#include <sys/sx.h>
|
||||||
#include <rtems/bsd/sys/unistd.h>
|
#include <rtems/bsd/sys/unistd.h>
|
||||||
#ifdef __rtems__
|
|
||||||
#include <rtems/mdns.h>
|
|
||||||
#endif /* __rtems__ */
|
|
||||||
|
|
||||||
SYSCTL_NODE(, 0, sysctl, CTLFLAG_RW, 0,
|
SYSCTL_NODE(, 0, sysctl, CTLFLAG_RW, 0,
|
||||||
"Sysctl internal magic");
|
"Sysctl internal magic");
|
||||||
@ -329,10 +326,6 @@ sysctl_hostname(SYSCTL_HANDLER_ARGS)
|
|||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
(void) cpr;
|
(void) cpr;
|
||||||
(void) descend;
|
(void) descend;
|
||||||
|
|
||||||
if (pr_offset == offsetof(struct prison, pr_hostname)) {
|
|
||||||
rtems_mdns_sethostname(tmpname);
|
|
||||||
}
|
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
mtx_unlock(&pr->pr_mtx);
|
mtx_unlock(&pr->pr_mtx);
|
||||||
#ifndef __rtems__
|
#ifndef __rtems__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user