add a new function of ethernet decode