added logic to ping every sec, ping code added: not tested.
Merge branch 'master' of github.com:swapnildinkar/networkprog
Merging changes, added a function to get mac address from ARP.