updated credit

this code assumes your default interface is eth0