anchor.diff:      ?WARN("Unexpected call ~p.", [Call]),
       {noreply, State}.
   
  -%%--------------------------------------------------------------------
   %% @private
  -%% @spec 
  -%% handle_cast(Msg, State) -> {noreply, State} |
  -%%                            {noreply, State, Timeout} |
  -%%                            {stop, Reason, State}
  -%% @doc Cast message handler callbacks
  -%% @end
  -%%--------------------------------------------------------------------
   handle_cast({send, #raw{data=Frame}}, S = #state{port=P})
     when is_port(P), is_binary(Frame) ->
       publish_tx(Frame, unknown, S),
  
positive.code: %% gen_server callbacks
  %%====================================================================
  
  %%--------------------------------------------------------------------
  %% @private
  %% @spec init(Args) -> {ok, State} |
  %%                     {ok, State, Timeout} |
  %%                     ignore               |
  %%                     {stop, Reason}
  %% @doc Initialises the server's state
  %% @end
  %%--------------------------------------------------------------------
  init([S = #state{dev=Device}, IfConfig]) ->
      Port = enet_tap:open(Device),
      {ok, S#state{port=Port
                   ,osifconfig=IfConfig
                   ,pubsub=pubsub:new()}}.
  
  %%--------------------------------------------------------------------
  %% @private
  %% @spec 
  %% handle_call(Request, From, State) -> {reply, Reply, State} |
  %%                                      {reply, Reply, State, Timeout} |
  %%                                      {noreply, State} |
  %%                                      {noreply, State, Timeout} |
  %%                                      {stop, Reason, Reply, State} |
  %%                                      {stop, Reason, State}
  %% @doc Call message handler callbacks
  %% @end
  %%--------------------------------------------------------------------
  handle_call({pubsub, Op}, _From, S = #state{pubsub=P}) ->
      NewPub = pubsub:process_msg(Op, P),
      {reply, ok, S#state{pubsub=NewPub}};
  
negative.code:     ?WARN("Unexpected cast ~p", [Msg]),
      {noreply, State}.
  
  %% @private
  handle_info({Port, {exit_status, N}}, S = #state{port=Port}) ->
      {stop, {interface_shutdown, N}, S#state{port=undefined}};
  handle_info({Port, {data, PortPacket}}, S = #state{port=Port}) ->
  