DLEP Status TLV is mandatory for Destination up/down ACK
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 26 Feb 2018 09:11:00 +0000 (10:11 +0100)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 26 Feb 2018 09:11:00 +0000 (10:11 +0100)
src-plugins/generic/dlep/ext_base_proto/proto.c
src-plugins/generic/dlep/ext_base_proto/proto_router.c

index 2c442ec..e79e774 100644 (file)
@@ -141,6 +141,7 @@ static const uint16_t _dst_up_ack_tlvs[] = {
 };
 static const uint16_t _dst_up_ack_mandatory[] = {
   DLEP_MAC_ADDRESS_TLV,
+  DLEP_STATUS_TLV,
 };
 
 /* destination down */
@@ -149,6 +150,7 @@ static const uint16_t _dst_down_tlvs[] = {
 };
 static const uint16_t _dst_down_mandatory[] = {
   DLEP_MAC_ADDRESS_TLV,
+  DLEP_STATUS_TLV,
 };
 
 /* destination down ack */
index 6572d02..0ebb432 100644 (file)
@@ -479,7 +479,7 @@ _router_process_destination_up(struct dlep_extension *ext __attribute__((unused)
   }
 
   /* generate ACK */
-  return dlep_session_generate_signal(session, DLEP_DESTINATION_UP_ACK, &mac);
+  return dlep_session_generate_signal_status (session, DLEP_DESTINATION_UP_ACK, &mac, DLEP_STATUS_OKAY, "Success");
 }
 
 /**
@@ -524,7 +524,7 @@ _router_process_destination_down(struct dlep_extension *ext __attribute__((unuse
   oonf_layer2_neigh_remove(l2neigh, session->l2_origin);
 
   /* generate ACK */
-  return dlep_session_generate_signal(session, DLEP_DESTINATION_DOWN_ACK, &mac);
+  return dlep_session_generate_signal_status(session, DLEP_DESTINATION_DOWN_ACK, &mac, DLEP_STATUS_OKAY, "Success");
 }
 
 /**