LibBSD | random init value bug cause use ping command fail (#7)
geng zhu (@zhugengyu2023)
gitlab at rtems.org
Wed Sep 11 01:41:47 UTC 2024
geng zhu created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/7
## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->
- freebsd/sbin/ping/ping.c has a bug brought when merging code from FreeBSD, where alarmtimeout、df、preload、tos has random init value and causes ping failed in some cases
```
#ifndef __rtems__
alarmtimeout = df = preload = tos = 0;
#endif /* __rtems__ */
```
- I modified code as following and works ok now
```
#ifndef __rtems__
alarmtimeout = df = preload = tos = 0;
#else
df = preload = tos = 0;
#endif /* __rtems__ */
```
## Steps to reproduce
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/7
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240911/4bec53a2/attachment-0001.htm>
More information about the bugs
mailing list