add some logic functions in ethernet.js