FreeBSD Bugzilla – Attachment 223903 Details for
Bug 254860
ping flood output incorrectly shows dot for dropped packet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
ping.diff (text/plain), 852 bytes, created by
jcaplan
on 2021-04-07 18:43:04 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
jcaplan
Created:
2021-04-07 18:43:04 UTC
Size:
852 bytes
patch
obsolete
>diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c >index fe197928085e..127601238168 100644 >--- a/sbin/ping/ping.c >+++ b/sbin/ping/ping.c >@@ -175,7 +175,6 @@ static int ssend; /* send socket file descriptor */ > static int srecv; /* receive socket file descriptor */ > static u_char outpackhdr[IP_MAXPACKET], *outpack; > static char BBELL = '\a'; /* characters written for MISSED and AUDIBLE */ >-static char BSPACE = '\b'; /* characters written for flood */ > static char DOT = '.'; > static char *hostname; > static char *shostname; >@@ -1229,7 +1228,7 @@ pr_pack(char *buf, ssize_t cc, struct sockaddr_in *from, struct timespec *tv) > } > > if (options & F_FLOOD) >- (void)write(STDOUT_FILENO, &BSPACE, 1); >+ (void)write(STDOUT_FILENO, "\b \b", 3); > else { > (void)printf("%zd bytes from %s: icmp_seq=%u", cc, > pr_addr(from->sin_addr), seq);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 254860
: 223903