Merge changes Ib48cc2b8,I3f0a12f1 into main

* changes:
  type safety for is_ethernet
  type safety for 'bool egress'