code: def encode_bridged_message(routing, header, payload, seq):
      
  
      # change header requester addresses for bridging
      header.rq_sa = routing[-1].rq_sa
      header.rs_sa = routing[-1].rs_sa
      tx_data = encode_ipmb_msg(header, payload)
  
      for bridge in reversed(routing[:-1]):
          tx_data = encode_send_message(tx_data,
                                        rq_sa=bridge.rq_sa,
                                        rs_sa=bridge.rs_sa,
                                        channel=bridge.channel,
                                        seq=seq)
  
      return tx_data
docs: Encode a (multi-)bridged command and embedd the message to be send.
  
      routing:
      payload: the message to be send as bytestring
      header:
      seq: the sequence number
  
      Returns the encoded send message as bytestring