Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8136273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:42:39+00:00 2026-06-06T10:42:39+00:00

Solution at end of this post. By default the time is set to one

  • 0

Solution at end of this post.

By default the time is set to one second, and under the usual iputils version of ping there is an option to reduce this number with the -i switch. I need to ping faster, as I have 120 pings in a certain test that needs to be run many times.

I tried modifying the source of ping.c from the busybox source but I don’t know much about compiling and I get the error “could not be found libbb.h” and I couldn’t find anyone else with a similar error on busybox.

Does anyone know of a way for me to ping faster than 1 per second, I am hoping to go down to 0.1 or 0.05 seconds if at all possible.

Thanks in advance

Solution

In case anyone comes looking for an answer, the solution I came up with was much better. If you write a script to ping with the -c 1 flag, and count the failures yourself you can ping much faster.

Example:

fails=0
for i in `seq 1 20`
do
  x=`ping -c 1 192.168.1.1 | grep received | cut -d' ' -f4`
  if [ x -eq 0 ]
  then
    fails=$(($fails+1))
  fi
done
echo $fails fails

done

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:42:41+00:00Added an answer on June 6, 2026 at 10:42 am

    You are correct in that you have to modify the ping.c file. As you have determined, BusyBox ping does not support the -i switch.

    What platform are you building this for? A PC, an embedded system?

    Option 1:
    Modify ping.c from BusyBox and recompile BusyBox. To do this, you would use ‘make’ in the root of the BusyBox project.

    user@linux:~/busybox-1.19.2$ make

    Option 2:
    It might be easier and more simplistic to leave BusyBox alone and get ping.c from another archive such as iputils. This supports the -i switch and goes as low as 0.2 seconds. To compile ping.c:

    user@linux:~/iputils-s20101006$ make ping

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so this is a tough one, I've spent hours looking for a solution/problem.
New Rails programmer here. There is probably a pretty simple solution to this, but
(A working solution, based on the responses, is provided at the end of this
Note: solution at the end If I attempt to do a HTTP POST of
(Edit: put possible solution at end) I'm a C/C++ programmer who is learning Objective
I've got the error [Solution at the end of the question] Fatal error: Class
I want to end up with a single VS project/solution that I can check
Solution: I had also moved ashx and asmx files at the same time as
Edited: SOLUTION FOUND. This is strange and not the best solution, but I just
I am working with a form, and the front end devs have default text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.