iqramali / ethernet_watchdog

Simple Ethernet watchdog test the network carrier if there is not response it pull down and up the network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ethernet_watchdog

Simple Ethernet watchdog test the network carrier if there is not response it pull down and up the network.

This simple ethernet watchdog send the ping at certain interval that is configured via Macro's to a host and wait for the reply. Sleep time also configured via Macro's in metric, seconds.

How to compile this program?

Use GCC and its POSIX Compatible not portable in Windows.

Usage of application:

./a.out: option requires an argument -- 'h'
Example: ./a.out -n /sys/class/net/<eth0>/carrier: ./a.out progname [options] [arguments...]
Commands: -n |	--ethernet                      - Ethernet network interface name
		--version                       - Display version
          -h |	--help                          - Display this help text

Running this application:

Use sudo for accessing the /sys file system. If you use this in your embedded device then make sure you have root privileges to access the /sys/ filesystem-

About

Simple Ethernet watchdog test the network carrier if there is not response it pull down and up the network

License:MIT License


Languages

Language:C 100.0%