Parcourir la source

cdp_avp: reformat code files with macros for code generation

- clang format is not dealing nicely with such cases, disable formatting
  for those snippets
Daniel-Constantin Mierla il y a 2 ans
Parent
commit
087369c56e
5 fichiers modifiés avec 3161 ajouts et 3149 suppressions
  1. 408 409
      src/modules/cdp_avp/base.h
  2. 414 415
      src/modules/cdp_avp/ccapp.h
  3. 1735 1715
      src/modules/cdp_avp/epcapp.h
  4. 551 554
      src/modules/cdp_avp/imsapp.h
  5. 53 56
      src/modules/cdp_avp/nasapp.h

+ 408 - 409
src/modules/cdp_avp/base.h

@@ -52,7 +52,7 @@
 #define CDP_AVP_MODULE base
 #define CDP_AVP_MODULE base
 
 
 #if !defined(CDP_AVP_DECLARATION) && !defined(CDP_AVP_EXPORT) \
 #if !defined(CDP_AVP_DECLARATION) && !defined(CDP_AVP_EXPORT) \
-		&& !defined(CDP_AVP_INIT) && !defined(CDP_AVP_REFERENCE)
+	&& !defined(CDP_AVP_INIT) && !defined(CDP_AVP_REFERENCE)
 #ifndef _CDP_AVP_BASE_H_1
 #ifndef _CDP_AVP_BASE_H_1
 #define _CDP_AVP_BASE_H_1
 #define _CDP_AVP_BASE_H_1
 
 
@@ -139,373 +139,371 @@
  *  
  *  
  *  vendor_id_group - an int value
  *  vendor_id_group - an int value
  *  
  *  
- *  avp_name_N	- the name of the Nth parameter. 
- *  	Previously, a cdp_avp_get(<avp_name_N>,<vendor_id_N>,<avp_type_N>,<data_type_N>) must be defined!
- *  
- *  data_type_N	- the respective data type for avp_type_N (same as <data_type_N) 
- *  
- *  The functions generated will return the number of found AVPs inside on success or 0 on error or not found
- *  The prototype of the function will be:
- *  
- *  	int cdp_avp_get_<avp_name_group>_Group(AAA_AVP_LIST list,<data_type_1> *avp_name_1,<data_type_2> *avp_name_2[,<data_type_3> *avp_name_3],AAA_AVP **avp_ptr)
- *  
- *  Note - generally, all data of type str will need to be defined with ..._ptr
- *  Note - Groups must be defined with:
- *  	 cdp_avp_add_ptr(...) and data_type AAA_AVP_LIST*
- *  	 cdp_avp_get(...) and data_type AAA_AVP_LIST 	
- */
+*  avp_name_N	- the name of the Nth parameter. 
+	   *  	Previously, a cdp_avp_get(<avp_name_N>,<vendor_id_N>,<avp_type_N>,<data_type_N>) must be defined!
+	*  
+	   *  data_type_N	- the respective data type for avp_type_N (same as <data_type_N) 
+		  *  
+			 *  The functions generated will return the number of found AVPs inside on success or 0 on error or not found
+				*  The prototype of the function will be:
+	*  
+	   *  	int cdp_avp_get_<avp_name_group>_Group(AAA_AVP_LIST list,<data_type_1> *avp_name_1,<data_type_2> *avp_name_2[,<data_type_3> *avp_name_3],AAA_AVP **avp_ptr)
+		  *  
+			 *  Note - generally, all data of type str will need to be defined with ..._ptr
+				*  Note - Groups must be defined with:
+				   *  	 cdp_avp_add_ptr(...) and data_type AAA_AVP_LIST*
+				   *  	 cdp_avp_get(...) and data_type AAA_AVP_LIST 	
+				   */
+
+/* clang-format off */
+cdp_avp_add(Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32, uint32_t)
+cdp_avp_get(Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32, uint32_t)
+
+cdp_avp(Firmware_Revision, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
+		uint32_t)
 
 
-cdp_avp_add(Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
-		uint32_t) cdp_avp_get(Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
+cdp_avp(Host_IP_Address, 0, AAA_AVP_FLAG_MANDATORY, Address,
+		ip_address)
+
+cdp_avp(Supported_Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY,
+		Unsigned32, uint32_t)
+
+cdp_avp_ptr(Product_Name, 0,
+		AAA_AVP_FLAG_MANDATORY, UTF8String, str)
+
+cdp_avp(Disconnect_Cause, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated, int32_t)
+
+cdp_avp_ptr(Origin_Host, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity, str)
+
+cdp_avp_ptr(
+		Origin_Realm, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp_ptr(
+		Destination_Host,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp_ptr(
+		Destination_Realm,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp_ptr(
+		Route_Record,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp_ptr(
+		Proxy_Host,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp_ptr(
+		Proxy_State,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		OctetString,
+		str)
+
+cdp_avp_add_ptr(
+		Proxy_Info,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Proxy_Info,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp(Auth_Application_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
 		uint32_t)
 		uint32_t)
 
 
-		cdp_avp(Firmware_Revision, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
-				uint32_t)
-
-				cdp_avp(Host_IP_Address, 0, AAA_AVP_FLAG_MANDATORY, Address,
-						ip_address)
-
-						cdp_avp(Supported_Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY,
-								Unsigned32, uint32_t)
-
-								cdp_avp_ptr(Product_Name, 0,
-										AAA_AVP_FLAG_MANDATORY, UTF8String, str)
-
-										cdp_avp(Disconnect_Cause, 0,
-												AAA_AVP_FLAG_MANDATORY,
-												Enumerated, int32_t)
-
-												cdp_avp_ptr(Origin_Host, 0,
-														AAA_AVP_FLAG_MANDATORY,
-														DiameterIdentity, str)
-
-														cdp_avp_ptr(
-																Origin_Realm, 0,
-																AAA_AVP_FLAG_MANDATORY,
-																DiameterIdentity,
-																str)
-
-																cdp_avp_ptr(
-																		Destination_Host,
-																		0,
-																		AAA_AVP_FLAG_MANDATORY,
-																		DiameterIdentity,
-																		str)
-
-																		cdp_avp_ptr(
-																				Destination_Realm,
-																				0,
-																				AAA_AVP_FLAG_MANDATORY,
-																				DiameterIdentity,
-																				str)
-
-																				cdp_avp_ptr(
-																						Route_Record,
-																						0,
-																						AAA_AVP_FLAG_MANDATORY,
-																						DiameterIdentity,
-																						str)
-
-																						cdp_avp_ptr(
-																								Proxy_Host,
-																								0,
-																								AAA_AVP_FLAG_MANDATORY,
-																								DiameterIdentity,
-																								str)
-
-																								cdp_avp_ptr(
-																										Proxy_State,
-																										0,
-																										AAA_AVP_FLAG_MANDATORY,
-																										OctetString,
-																										str)
-
-																										cdp_avp_add_ptr(
-																												Proxy_Info,
-																												0,
-																												AAA_AVP_FLAG_MANDATORY,
-																												Grouped,
-																												AAA_AVP_LIST
-																														*)
-																												cdp_avp_get(
-																														Proxy_Info,
-																														0,
-																														AAA_AVP_FLAG_MANDATORY,
-																														Grouped,
-																														AAA_AVP_LIST)
-
-																														cdp_avp(Auth_Application_Id,
-																																0,
-																																AAA_AVP_FLAG_MANDATORY,
-																																Unsigned32,
-																																uint32_t)
-
-																																cdp_avp(Acct_Application_Id,
-																																		0,
-																																		AAA_AVP_FLAG_MANDATORY,
-																																		Unsigned32,
-																																		uint32_t)
-
-																																		cdp_avp(Inband_Security_Id, 0,
-																																				AAA_AVP_FLAG_MANDATORY,
-																																				Unsigned32,
-																																				uint32_t)
-
-																																				cdp_avp_add_ptr(
-																																						Vendor_Specific_Application_Id,
-																																						0,
-																																						AAA_AVP_FLAG_MANDATORY,
-																																						Grouped,
-																																						AAA_AVP_LIST
-																																								*)
-																																						cdp_avp_get(
-																																								Vendor_Specific_Application_Id,
-																																								0,
-																																								AAA_AVP_FLAG_MANDATORY,
-																																								Grouped,
-																																								AAA_AVP_LIST)
-																																								cdp_avp_get3(
-																																										Vendor_Specific_Application_Id,
-																																										0,
-																																										AAA_AVP_FLAG_MANDATORY,
-																																										Vendor_Id,
-																																										uint32_t, Auth_Application_Id, uint32_t,
-																																										Acct_Application_Id,
-																																										uint32_t)
-
-																																										cdp_avp_ptr(
-																																												Redirect_Host,
-																																												0,
-																																												AAA_AVP_FLAG_MANDATORY,
-																																												DiameterIdentity,
-																																												str)
-
-																																												cdp_avp(Redirect_Host_Usage,
-																																														0,
-																																														AAA_AVP_FLAG_MANDATORY,
-																																														Enumerated,
-																																														int32_t)
-
-																																														cdp_avp(Redirect_Max_Cache_Time, 0, AAA_AVP_FLAG_MANDATORY,
-																																																Unsigned32,
-																																																uint32_t)
-
-																																																cdp_avp_ptr(
-																																																		E2E_Sequence,
-																																																		0,
-																																																		AAA_AVP_FLAG_MANDATORY,
-																																																		OctetString,
-																																																		str)
-
-																																																		cdp_avp(Result_Code,
-																																																				0,
-																																																				AAA_AVP_FLAG_MANDATORY,
-																																																				Unsigned32,
-																																																				uint32_t)
-
-																																																				cdp_avp_ptr(Error_Message, 0,
-																																																						AAA_AVP_FLAG_MANDATORY,
-																																																						UTF8String,
-																																																						str)
-
-																																																						cdp_avp_ptr(
-																																																								Error_Reporting_Host,
-																																																								0,
-																																																								AAA_AVP_FLAG_MANDATORY,
-																																																								DiameterIdentity,
-																																																								str)
-
-																																																								cdp_avp_add_ptr(Failed_AVP, 0, AAA_AVP_FLAG_MANDATORY,
-																																																										Grouped,
-																																																										AAA_AVP_LIST
-																																																												*)
-																																																										cdp_avp_get(
-																																																												Failed_AVP,
-																																																												0,
-																																																												AAA_AVP_FLAG_MANDATORY,
-																																																												Grouped,
-																																																												AAA_AVP_LIST)
-
-																																																												cdp_avp(Experimental_Result_Code,
-																																																														0,
-																																																														AAA_AVP_FLAG_MANDATORY,
-																																																														Unsigned32,
-																																																														uint32_t)
-
-																																																														cdp_avp_add_ptr(
-																																																																Experimental_Result,
-																																																																0,
-																																																																AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *) cdp_avp_get(Experimental_Result,
-																																																																0,
-																																																																AAA_AVP_FLAG_MANDATORY,
-																																																																Grouped,
-																																																																AAA_AVP_LIST)
-																																																																cdp_avp2(
-																																																																		Experimental_Result,
-																																																																		0,
-																																																																		AAA_AVP_FLAG_MANDATORY,
-																																																																		Vendor_Id, uint32_t, Experimental_Result_Code,
-																																																																		uint32_t)
-
-																																																																		cdp_avp(Auth_Request_Type,
-																																																																				0,
-																																																																				AAA_AVP_FLAG_MANDATORY,
-																																																																				Enumerated,
-																																																																				int32_t)
-
-																																																																				cdp_avp_ptr(
-																																																																						Session_Id, 0,
-																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																						UTF8String,
-																																																																						str)
-
-																																																																						cdp_avp(Authorization_Lifetime,
-																																																																								0,
-																																																																								AAA_AVP_FLAG_MANDATORY,
-																																																																								Unsigned32,
-																																																																								uint32_t)
-
-																																																																								cdp_avp(Auth_Grace_Period,
-																																																																										0,
-																																																																										AAA_AVP_FLAG_MANDATORY,
-																																																																										Unsigned32,
-																																																																										uint32_t)
-
-																																																																										cdp_avp(Auth_Session_State, 0, AAA_AVP_FLAG_MANDATORY,
-																																																																												Enumerated,
-																																																																												int32_t)
-
-																																																																												cdp_avp(Re_Auth_Request_Type,
-																																																																														0,
-																																																																														AAA_AVP_FLAG_MANDATORY,
-																																																																														Enumerated,
-																																																																														int32_t)
-
-																																																																														cdp_avp(Session_Timeout,
-																																																																																0,
-																																																																																AAA_AVP_FLAG_MANDATORY,
-																																																																																Unsigned32,
-																																																																																uint32_t)
-
-																																																																																cdp_avp_ptr(
-																																																																																		User_Name,
-																																																																																		0,
-																																																																																		AAA_AVP_FLAG_MANDATORY,
-																																																																																		UTF8String,
-																																																																																		str)
-
-																																																																																		cdp_avp(Termination_Cause,
-																																																																																				0,
-																																																																																				AAA_AVP_FLAG_MANDATORY,
-																																																																																				Enumerated, int32_t)
-
-																																																																																				cdp_avp(Origin_State_Id,
-																																																																																						0,
-																																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																																						Unsigned32,
-																																																																																						uint32_t)
-
-																																																																																						cdp_avp(Session_Binding,
-																																																																																								0,
-																																																																																								AAA_AVP_FLAG_MANDATORY,
-																																																																																								Unsigned32,
-																																																																																								uint32_t)
-
-																																																																																								cdp_avp(Session_Server_Failover,
-																																																																																										0,
-																																																																																										AAA_AVP_FLAG_MANDATORY,
-																																																																																										Enumerated,
-																																																																																										int32_t)
-
-																																																																																										cdp_avp(Multi_Round_Time_Out,
-																																																																																												0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
-																																																																																												uint32_t)
-
-																																																																																												cdp_avp_ptr(
-																																																																																														Class,
-																																																																																														0,
-																																																																																														AAA_AVP_FLAG_MANDATORY, OctetString,
-																																																																																														str)
-
-																																																																																														cdp_avp(Event_Timestamp, 0, AAA_AVP_FLAG_MANDATORY, Time, time_t)
-
-																																																																																																cdp_avp(Accounting_Record_Type,
-																																																																																																		0,
-																																																																																																		AAA_AVP_FLAG_MANDATORY, Enumerated, int32_t)
-
-																																																																																																		cdp_avp(Acct_Interim_Interval, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32, uint32_t)
-
-																																																																																																				cdp_avp(Accounting_Record_Number,
-																																																																																																						0,
-																																																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																																																						Unsigned32,
-																																																																																																						uint32_t)
-
-																																																																																																						cdp_avp_ptr(Acct_Session_Id, 0, AAA_AVP_FLAG_MANDATORY, OctetString, str)
-
-																																																																																																								cdp_avp_ptr(
-																																																																																																										Acct_Multi_Session_Id,
-																																																																																																										0,
-																																																																																																										AAA_AVP_FLAG_MANDATORY,
-																																																																																																										UTF8String, str)
-
-																																																																																																										cdp_avp(Accounting_Sub_Session_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64, uint64_t)
-
-																																																																																																												cdp_avp(Accounting_Realtime_Required, 0, AAA_AVP_FLAG_MANDATORY, Enumerated,
-																																																																																																														int32_t)
-
-																																																																																																														cdp_avp_add_ptr(
-																																																																																																																MIP6_Agent_Info,
-																																																																																																																0,
-																																																																																																																AAA_AVP_FLAG_MANDATORY, Grouped,
-																																																																																																																AAA_AVP_LIST
-																																																																																																																		*)
-																																																																																																																cdp_avp_get(
-																																																																																																																		MIP6_Agent_Info, 0, AAA_AVP_FLAG_MANDATORY,
-																																																																																																																		Grouped,
-																																																																																																																		AAA_AVP_LIST)
-
-																																																																																																																		cdp_avp(MIP_Home_Agent_Address,
-																																																																																																																				0,
-																																																																																																																				AAA_AVP_FLAG_MANDATORY,
-																																																																																																																				Address,
-																																																																																																																				ip_address)
-
-																																																																																																																				cdp_avp_add_ptr(
-																																																																																																																						MIP_Home_Agent_Host,
-																																																																																																																						0,
-																																																																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																																																																						Grouped, AAA_AVP_LIST *) cdp_avp_get(MIP_Home_Agent_Host,
-																																																																																																																						0,
-																																																																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																																																																						Grouped,
-																																																																																																																						AAA_AVP_LIST)
-
-																																																																																																																						cdp_avp_ptr(
-																																																																																																																								MIP6_Home_Link_Prefix,
-																																																																																																																								0,
-																																																																																																																								AAA_AVP_FLAG_MANDATORY,
-																																																																																																																								OctetString,
-																																																																																																																								str)
-
-																																																																																																																								cdp_avp(MIP6_Feature_Vector, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
-																																																																																																																										uint64_t)
-
-																																																																																																																										cdp_avp_ptr(
-																																																																																																																												Service_Selection,
-																																																																																																																												0,
-																																																																																																																												AAA_AVP_FLAG_MANDATORY,
-																																																																																																																												UTF8String,
-																																																																																																																												str)
+cdp_avp(Acct_Application_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
 
 
+cdp_avp(Inband_Security_Id, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
 
 
-/*
- * From here-on you can define/export/init/declare functions which can not be generate with the macros
- */
+cdp_avp_add_ptr(
+		Vendor_Specific_Application_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Vendor_Specific_Application_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+cdp_avp_get3(
+		Vendor_Specific_Application_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Vendor_Id,
+		uint32_t, Auth_Application_Id, uint32_t,
+		Acct_Application_Id,
+		uint32_t)
+
+cdp_avp_ptr(
+		Redirect_Host,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp(Redirect_Host_Usage,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Redirect_Max_Cache_Time, 0, AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_ptr(
+		E2E_Sequence,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		OctetString,
+		str)
+
+cdp_avp(Result_Code,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_ptr(Error_Message, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp_ptr(
+		Error_Reporting_Host,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		DiameterIdentity,
+		str)
+
+cdp_avp_add_ptr(Failed_AVP, 0, AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Failed_AVP,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp(Experimental_Result_Code,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_add_ptr(
+		Experimental_Result,
+		0,
+		AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *)
+cdp_avp_get(Experimental_Result,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+cdp_avp2(
+		Experimental_Result,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Vendor_Id, uint32_t, Experimental_Result_Code,
+		uint32_t)
+
+cdp_avp(Auth_Request_Type,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp_ptr(
+		Session_Id, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp(Authorization_Lifetime,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(Auth_Grace_Period,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(Auth_Session_State, 0, AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Re_Auth_Request_Type,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Session_Timeout,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_ptr(
+		User_Name,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp(Termination_Cause,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated, int32_t)
+
+cdp_avp(Origin_State_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(Session_Binding,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(Session_Server_Failover,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Multi_Round_Time_Out,
+		0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
+		uint32_t)
+
+cdp_avp_ptr(
+		Class,
+		0,
+		AAA_AVP_FLAG_MANDATORY, OctetString,
+		str)
+
+cdp_avp(Event_Timestamp, 0, AAA_AVP_FLAG_MANDATORY, Time, time_t)
+
+cdp_avp(Accounting_Record_Type,
+		0,
+		AAA_AVP_FLAG_MANDATORY, Enumerated, int32_t)
+
+cdp_avp(Acct_Interim_Interval, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32, uint32_t)
+
+cdp_avp(Accounting_Record_Number,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_ptr(Acct_Session_Id, 0, AAA_AVP_FLAG_MANDATORY, OctetString, str)
+
+cdp_avp_ptr(
+		Acct_Multi_Session_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String, str)
+
+cdp_avp(Accounting_Sub_Session_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64, uint64_t)
+
+cdp_avp(Accounting_Realtime_Required, 0, AAA_AVP_FLAG_MANDATORY, Enumerated,
+		int32_t)
+
+cdp_avp_add_ptr(
+		MIP6_Agent_Info,
+		0,
+		AAA_AVP_FLAG_MANDATORY, Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		MIP6_Agent_Info, 0, AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp(MIP_Home_Agent_Address,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Address,
+		ip_address)
+
+cdp_avp_add_ptr(
+		MIP_Home_Agent_Host,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped, AAA_AVP_LIST *)
+cdp_avp_get(MIP_Home_Agent_Host,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_ptr(
+		MIP6_Home_Link_Prefix,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		OctetString,
+		str)
+
+cdp_avp(MIP6_Feature_Vector, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
+		uint64_t)
+
+cdp_avp_ptr(
+		Service_Selection,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+
+	/*
+	 * From here-on you can define/export/init/declare functions which can not be generate with the macros
+	 */
 
 
 #if defined(CDP_AVP_DEFINITION)
 #if defined(CDP_AVP_DEFINITION)
 
 
-		/*
+	/*
 	 * Put here your supplimentary definitions. Typically:
 	 * Put here your supplimentary definitions. Typically:
 	 * 
 	 * 
 	 * int <function1>(param1)
 	 * int <function1>(param1)
@@ -516,8 +514,8 @@ cdp_avp_add(Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
 	 * 
 	 * 
 	 */
 	 */
 
 
-		int cdp_avp_add_Vendor_Specific_Application_Id_Group(AAA_AVP_LIST *list,
-				uint32_t vendor_id, uint32_t auth_app_id, uint32_t acct_app_id)
+int cdp_avp_add_Vendor_Specific_Application_Id_Group(AAA_AVP_LIST *list,
+		uint32_t vendor_id, uint32_t auth_app_id, uint32_t acct_app_id)
 {
 {
 	AAA_AVP_LIST list_grp = {0, 0};
 	AAA_AVP_LIST list_grp = {0, 0};
 	if(!cdp_avp_add_Vendor_Id(&list_grp, vendor_id))
 	if(!cdp_avp_add_Vendor_Id(&list_grp, vendor_id))
@@ -528,24 +526,24 @@ cdp_avp_add(Vendor_Id, 0, AAA_AVP_FLAG_MANDATORY, Unsigned32,
 		goto error;
 		goto error;
 	return cdp_avp_add_to_list(
 	return cdp_avp_add_to_list(
 			list, cdp_avp_new_Grouped(AVP_Vendor_Specific_Application_Id,
 			list, cdp_avp_new_Grouped(AVP_Vendor_Specific_Application_Id,
-						  AAA_AVP_FLAG_MANDATORY, 0, &list_grp, AVP_FREE_DATA));
+				AAA_AVP_FLAG_MANDATORY, 0, &list_grp, AVP_FREE_DATA));
 error:
 error:
 	cdp->AAAFreeAVPList(&list_grp);
 	cdp->AAAFreeAVPList(&list_grp);
 	return 0;
 	return 0;
 }
 }
 
 
 /**
 /**
-	 * http://tools.ietf.org/html/rfc3588#section-6.11
-	 * @param list
-	 * @param data
-	 * @return
-	 */
+ * http://tools.ietf.org/html/rfc3588#section-6.11
+ * @param list
+ * @param data
+ * @return
+ */
 int cdp_avp_get_Vendor_Specific_Application_Id_example(AAA_AVP_LIST list,
 int cdp_avp_get_Vendor_Specific_Application_Id_example(AAA_AVP_LIST list,
 		uint32_t *vendor_id, uint32_t *auth_app_id, uint32_t *acct_app_id)
 		uint32_t *vendor_id, uint32_t *auth_app_id, uint32_t *acct_app_id)
 {
 {
 	AAA_AVP_LIST list_grp = {0, 0};
 	AAA_AVP_LIST list_grp = {0, 0};
 	AAA_AVP *avp =
 	AAA_AVP *avp =
-			cdp_avp_get_from_list(list, AVP_Vendor_Specific_Application_Id, 0);
+		cdp_avp_get_from_list(list, AVP_Vendor_Specific_Application_Id, 0);
 	if(!avp)
 	if(!avp)
 		goto error;
 		goto error;
 	cdp_avp_get_Grouped(avp, &list_grp);
 	cdp_avp_get_Grouped(avp, &list_grp);
@@ -569,49 +567,49 @@ error:
 
 
 #elif defined(CDP_AVP_EXPORT)
 #elif defined(CDP_AVP_EXPORT)
 
 
-		/*
-	 * Put here your supplimentary exports in the format: 
-	 * 	<function_type1> <nice_function_name1>; 
-	 *  <function_type2> <nice_function_name1>;
-	 *  ...
-	 *  
-	 */
+/*
+ * Put here your supplimentary exports in the format: 
+ * 	<function_type1> <nice_function_name1>; 
+ *  <function_type2> <nice_function_name1>;
+ *  ...
+ *  
+ */
 
 
-		cdp_avp_add_Vendor_Specific_Application_Id_Group_f
-		add_Vendor_Specific_Application_Id_Group;
+cdp_avp_add_Vendor_Specific_Application_Id_Group_f
+add_Vendor_Specific_Application_Id_Group;
 
 
 cdp_avp_get_Vendor_Specific_Application_Id_example_f
 cdp_avp_get_Vendor_Specific_Application_Id_example_f
-		get_Vendor_Specific_Application_Id_example;
+get_Vendor_Specific_Application_Id_example;
 
 
 
 
 #elif defined(CDP_AVP_INIT)
 #elif defined(CDP_AVP_INIT)
 
 
-		/*
-	 * Put here your supplimentary inits in the format: 
-	 * 	<function1>,
-	 *  <function2>,
-	 *  ...
-	 * 
-	 * Make sure you keep the same order as in export!
-	 * 
-	 */
+/*
+ * Put here your supplimentary inits in the format: 
+ * 	<function1>,
+ *  <function2>,
+ *  ...
+ * 
+ * Make sure you keep the same order as in export!
+ * 
+ */
 
 
-		cdp_avp_add_Vendor_Specific_Application_Id_Group,
+cdp_avp_add_Vendor_Specific_Application_Id_Group,
 
 
-		cdp_avp_get_Vendor_Specific_Application_Id_example,
+	cdp_avp_get_Vendor_Specific_Application_Id_example,
 
 
 
 
 #elif defined(CDP_AVP_REFERENCE)
 #elif defined(CDP_AVP_REFERENCE)
-		/*
+	/*
 	 * Put here what you want to get in the reference. Typically:
 	 * Put here what you want to get in the reference. Typically:
 	 * <function1>
 	 * <function1>
 	 * <function2>
 	 * <function2>
 	 * ... 
 	 * ... 
 	 * 
 	 * 
 	 */
 	 */
-		int CDP_AVP_MODULE.add_Vendor_Specific_Application_Id_Group(
-				AAA_AVP_LIST *list, uint32_t vendor_id, uint32_t auth_app_id,
-				uint32_t acct_app_id);
+int CDP_AVP_MODULE.add_Vendor_Specific_Application_Id_Group(
+		AAA_AVP_LIST *list, uint32_t vendor_id, uint32_t auth_app_id,
+		uint32_t acct_app_id);
 
 
 int CDP_AVP_MODULE.get_Vendor_Specific_Application_Id_example(AAA_AVP_LIST list,
 int CDP_AVP_MODULE.get_Vendor_Specific_Application_Id_example(AAA_AVP_LIST list,
 		uint32_t *vendor_id, uint32_t *auth_app_id, uint32_t *acct_app_id);
 		uint32_t *vendor_id, uint32_t *auth_app_id, uint32_t *acct_app_id);
@@ -623,25 +621,25 @@ int CDP_AVP_MODULE.get_Vendor_Specific_Application_Id_example(AAA_AVP_LIST list,
 #else
 #else
 
 
 /*
 /*
-	 * Put here your definitions according to the declarations, exports, init, etc above. Typically:
-	 * 
-	 * int <function1(params1);>
-	 * typedef int <*function_type1>(params1);
-	 * 
-	 * int <function2(param2);>
-	 * typedef int <*function_type2>(params2);
-	 * 
-	 * ...
-	 *  
-	 */
+ * Put here your definitions according to the declarations, exports, init, etc above. Typically:
+ * 
+ * int <function1(params1);>
+ * typedef int <*function_type1>(params1);
+ * 
+ * int <function2(param2);>
+ * typedef int <*function_type2>(params2);
+ * 
+ * ...
+ *  
+ */
 
 
 #ifndef _CDP_AVP_BASE_H_2
 #ifndef _CDP_AVP_BASE_H_2
 #define _CDP_AVP_BASE_H_2
 #define _CDP_AVP_BASE_H_2
 
 
-																																																																																																																												int cdp_avp_add_Vendor_Specific_Application_Id_Group(
-																																																																																																																														AAA_AVP_LIST
-																																																																																																																																*list,
-																																																																																																																														uint32_t vendor_id, uint32_t auth_app_id, uint32_t acct_app_id);
+int cdp_avp_add_Vendor_Specific_Application_Id_Group(
+		AAA_AVP_LIST
+		*list,
+		uint32_t vendor_id, uint32_t auth_app_id, uint32_t acct_app_id);
 typedef int (*cdp_avp_add_Vendor_Specific_Application_Id_Group_f)(
 typedef int (*cdp_avp_add_Vendor_Specific_Application_Id_Group_f)(
 		AAA_AVP_LIST *list, uint32_t vendor_id, uint32_t auth_app_id,
 		AAA_AVP_LIST *list, uint32_t vendor_id, uint32_t auth_app_id,
 		uint32_t acct_app_id);
 		uint32_t acct_app_id);
@@ -661,3 +659,4 @@ typedef int (*cdp_avp_get_Vendor_Specific_Application_Id_example_f)(
 #define CDP_AVP_UNDEF_MACROS
 #define CDP_AVP_UNDEF_MACROS
 #include "macros.h"
 #include "macros.h"
 #undef CDP_AVP_UNDEF_MACROS
 #undef CDP_AVP_UNDEF_MACROS
+/* clang-format on */

+ 414 - 415
src/modules/cdp_avp/ccapp.h

@@ -51,7 +51,7 @@
 #define CDP_AVP_MODULE ccapp
 #define CDP_AVP_MODULE ccapp
 
 
 #if !defined(CDP_AVP_DECLARATION) && !defined(CDP_AVP_EXPORT) \
 #if !defined(CDP_AVP_DECLARATION) && !defined(CDP_AVP_EXPORT) \
-		&& !defined(CDP_AVP_INIT) && !defined(CDP_AVP_REFERENCE)
+	&& !defined(CDP_AVP_INIT) && !defined(CDP_AVP_REFERENCE)
 #ifndef _CDP_AVP_CCAPP_H_1
 #ifndef _CDP_AVP_CCAPP_H_1
 #define _CDP_AVP_CCAPP_H_1
 #define _CDP_AVP_CCAPP_H_1
 
 
@@ -138,379 +138,377 @@
  *  
  *  
  *  vendor_id_group - an int value
  *  vendor_id_group - an int value
  *  
  *  
- *  avp_name_N	- the name of the Nth parameter. 
- *  	Previously, a cdp_avp_get(<avp_name_N>,<vendor_id_N>,<avp_type_N>,<data_type_N>) must be defined!
- *  
- *  data_type_N	- the respective data type for avp_type_N (same as <data_type_N) 
- *  
- *  The functions generated will return the number of found AVPs inside on success or 0 on error or not found
- *  The prototype of the function will be:
- *  
- *  	int cdp_avp_get_<avp_name_group>_Group(AAA_AVP_LIST list,<data_type_1> *avp_name_1,<data_type_2> *avp_name_2[,<data_type_3> *avp_name_3],AAA_AVP **avp_ptr)
- *  
- *  Note - generally, all data of type str will need to be defined with ..._ptr
- *  Note - Groups must be defined with:
- *  	 cdp_avp_add_ptr(...) and data_type AAA_AVP_LIST*
- *  	 cdp_avp_get(...) and data_type AAA_AVP_LIST 	
- */
-
-
+*  avp_name_N	- the name of the Nth parameter. 
+	   *  	Previously, a cdp_avp_get(<avp_name_N>,<vendor_id_N>,<avp_type_N>,<data_type_N>) must be defined!
+	*  
+	   *  data_type_N	- the respective data type for avp_type_N (same as <data_type_N) 
+		  *  
+			 *  The functions generated will return the number of found AVPs inside on success or 0 on error or not found
+				*  The prototype of the function will be:
+	*  
+	   *  	int cdp_avp_get_<avp_name_group>_Group(AAA_AVP_LIST list,<data_type_1> *avp_name_1,<data_type_2> *avp_name_2[,<data_type_3> *avp_name_3],AAA_AVP **avp_ptr)
+		  *  
+			 *  Note - generally, all data of type str will need to be defined with ..._ptr
+				*  Note - Groups must be defined with:
+				   *  	 cdp_avp_add_ptr(...) and data_type AAA_AVP_LIST*
+				   *  	 cdp_avp_get(...) and data_type AAA_AVP_LIST 	
+				   */
+
+/* clang-format off */
 cdp_avp_ptr(CC_Correlation_Id, 0, 0, OctetString, str)
 cdp_avp_ptr(CC_Correlation_Id, 0, 0, OctetString, str)
 
 
-		cdp_avp(CC_Input_Octets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
-				uint64_t)
-
-				cdp_avp_add_ptr(CC_Money, 0, AAA_AVP_FLAG_MANDATORY, Grouped,
-						AAA_AVP_LIST *)
-						cdp_avp_get(CC_Money, 0, AAA_AVP_FLAG_MANDATORY,
-								Grouped, AAA_AVP_LIST)
-
-								cdp_avp(CC_Output_Octets, 0,
-										AAA_AVP_FLAG_MANDATORY, Unsigned64,
-										uint64_t)
-
-										cdp_avp(CC_Request_Number, 0,
-												AAA_AVP_FLAG_MANDATORY,
-												Unsigned32, uint32_t)
-
-												cdp_avp(CC_Request_Type, 0,
-														AAA_AVP_FLAG_MANDATORY,
-														Enumerated, int32_t)
-
-														cdp_avp(CC_Service_Specific_Units,
-																0,
-																AAA_AVP_FLAG_MANDATORY,
-																Unsigned64,
-																uint64_t)
-
-																cdp_avp(CC_Session_Failover,
-																		0,
-																		AAA_AVP_FLAG_MANDATORY,
-																		Enumerated,
-																		int32_t)
-
-																		cdp_avp(CC_Sub_Session_Id,
-																				0,
-																				AAA_AVP_FLAG_MANDATORY,
-																				Unsigned64,
-																				uint64_t)
-
-																				cdp_avp(CC_Time,
-																						0,
-																						AAA_AVP_FLAG_MANDATORY,
-																						Unsigned32,
-																						uint32_t)
-
-																						cdp_avp(CC_Total_Octets,
-																								0,
-																								AAA_AVP_FLAG_MANDATORY,
-																								Unsigned64,
-																								uint64_t)
-
-																								cdp_avp(CC_Unit_Type,
-																										0,
-																										AAA_AVP_FLAG_MANDATORY,
-																										Enumerated,
-																										int32_t)
-
-																										cdp_avp(Check_Balance_Result,
-																												0,
-																												AAA_AVP_FLAG_MANDATORY,
-																												Enumerated,
-																												int32_t)
-
-																												cdp_avp_add_ptr(
-																														Cost_Information,
-																														0,
-																														AAA_AVP_FLAG_MANDATORY,
-																														Grouped,
-																														AAA_AVP_LIST
-																																*)
-																														cdp_avp_get(
-																																Cost_Information,
-																																0,
-																																AAA_AVP_FLAG_MANDATORY,
-																																Grouped,
-																																AAA_AVP_LIST)
-
-																																cdp_avp_ptr(
-																																		Cost_Unit,
-																																		0,
-																																		AAA_AVP_FLAG_MANDATORY,
-																																		UTF8String,
-																																		str)
-
-																																		cdp_avp(Credit_Control, 0, AAA_AVP_FLAG_MANDATORY,
-																																				Enumerated,
-																																				int32_t)
-
-																																				cdp_avp(Credit_Control_Failure_Handling,
-																																						0,
-																																						AAA_AVP_FLAG_MANDATORY,
-																																						Enumerated,
-																																						int32_t)
-
-																																						cdp_avp(Currency_Code,
-																																								0,
-																																								AAA_AVP_FLAG_MANDATORY,
-																																								Unsigned32,
-																																								uint32_t)
-
-																																								cdp_avp(Direct_Debiting_Failure_Handling,
-																																										0,
-																																										AAA_AVP_FLAG_MANDATORY,
-																																										Enumerated,
-																																										int32_t)
-
-																																										cdp_avp(Exponent, 0,
-																																												AAA_AVP_FLAG_MANDATORY,
-																																												Integer32,
-																																												int32_t)
-
-																																												cdp_avp(Final_Unit_Action,
-																																														0,
-																																														AAA_AVP_FLAG_MANDATORY,
-																																														Enumerated,
-																																														int32_t)
-
-																																														cdp_avp_add_ptr(Final_Unit_Indication, 0, AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *) cdp_avp_get(
-																																																Final_Unit_Indication,
-																																																0,
-																																																AAA_AVP_FLAG_MANDATORY,
-																																																Grouped,
-																																																AAA_AVP_LIST)
-
-																																																cdp_avp_add_ptr(
-																																																		Granted_Service_Unit,
-																																																		0,
-																																																		AAA_AVP_FLAG_MANDATORY,
-																																																		Grouped,
-																																																		AAA_AVP_LIST
-																																																				*)
-																																																		cdp_avp_get(
-																																																				Granted_Service_Unit,
-																																																				0,
-																																																				AAA_AVP_FLAG_MANDATORY,
-																																																				Grouped,
-																																																				AAA_AVP_LIST)
-
-																																																				cdp_avp(G_S_U_Pool_Identifier,
-																																																						0,
-																																																						AAA_AVP_FLAG_MANDATORY,
-																																																						Unsigned32,
-																																																						uint32_t)
-
-																																																						cdp_avp_add_ptr(
-																																																								G_S_U_Pool_Reference, 0, AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *)
-																																																								cdp_avp_get(
-																																																										G_S_U_Pool_Reference,
-																																																										0,
-																																																										AAA_AVP_FLAG_MANDATORY,
-																																																										Grouped,
-																																																										AAA_AVP_LIST)
-
-																																																										cdp_avp_add_ptr(
-																																																												Multiple_Services_Credit_Control,
-																																																												0,
-																																																												AAA_AVP_FLAG_MANDATORY,
-																																																												Grouped,
-																																																												AAA_AVP_LIST
-																																																														*)
-																																																												cdp_avp_get(
-																																																														Multiple_Services_Credit_Control,
-																																																														0,
-																																																														AAA_AVP_FLAG_MANDATORY,
-																																																														Grouped,
-																																																														AAA_AVP_LIST)
-
-																																																														cdp_avp(Multiple_Services_Indicator, 0, AAA_AVP_FLAG_MANDATORY,
-																																																																Enumerated,
-																																																																int32_t)
-
-																																																																cdp_avp(Rating_Group,
-																																																																		0,
-																																																																		AAA_AVP_FLAG_MANDATORY,
-																																																																		Unsigned32,
-																																																																		uint32_t)
-
-																																																																		cdp_avp(Redirect_Address_Type,
-																																																																				0,
-																																																																				AAA_AVP_FLAG_MANDATORY,
-																																																																				Enumerated,
-																																																																				int32_t)
-
-																																																																				cdp_avp_add_ptr(
-																																																																						Redirect_Server,
-																																																																						0,
-																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																						Grouped, AAA_AVP_LIST *) cdp_avp_get(Redirect_Server,
-																																																																						0,
-																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																						Grouped,
-																																																																						AAA_AVP_LIST)
-
-																																																																						cdp_avp_ptr(
-																																																																								Redirect_Server_Address, 0, AAA_AVP_FLAG_MANDATORY,
-																																																																								UTF8String,
-																																																																								str)
-
-																																																																								cdp_avp(Requested_Action,
-																																																																										0,
-																																																																										AAA_AVP_FLAG_MANDATORY,
-																																																																										Enumerated,
-																																																																										int32_t)
-
-																																																																										cdp_avp_add_ptr(
-																																																																												Requested_Service_Unit,
-																																																																												0,
-																																																																												AAA_AVP_FLAG_MANDATORY,
-																																																																												Grouped,
-																																																																												AAA_AVP_LIST
-																																																																														*) cdp_avp_get(Requested_Service_Unit, 0, AAA_AVP_FLAG_MANDATORY,
-																																																																												Grouped,
-																																																																												AAA_AVP_LIST)
-
-																																																																												cdp_avp_ptr(
-																																																																														Restriction_Filter_Rule,
-																																																																														0,
-																																																																														AAA_AVP_FLAG_MANDATORY,
-																																																																														IPFilterRule,
-																																																																														str)
-
-																																																																														cdp_avp_ptr(
-																																																																																Service_Context_Id,
-																																																																																0,
-																																																																																AAA_AVP_FLAG_MANDATORY,
-																																																																																UTF8String,
-																																																																																str)
-
-																																																																																cdp_avp(Service_Identifier,
-																																																																																		0,
-																																																																																		AAA_AVP_FLAG_MANDATORY,
-																																																																																		Unsigned32,
-																																																																																		uint32_t)
-
-																																																																																		cdp_avp_add_ptr(Service_Parameter_Info,
-																																																																																				0,
-																																																																																				0,
-																																																																																				Grouped, AAA_AVP_LIST *)
-																																																																																				cdp_avp_get(
-																																																																																						Service_Parameter_Info, 0, 0, Grouped, AAA_AVP_LIST)
-
-																																																																																						cdp_avp(Service_Parameter_Type,
-																																																																																								0,
-																																																																																								0,
-																																																																																								Unsigned32,
-																																																																																								uint32_t)
-
-																																																																																								cdp_avp_ptr(
-																																																																																										Service_Parameter_Value,
-																																																																																										0,
-																																																																																										0,
-																																																																																										OctetString,
-																																																																																										str)
-
-																																																																																										cdp_avp_add_ptr(
-																																																																																												Subscription_Id,
-																																																																																												0,
-																																																																																												AAA_AVP_FLAG_MANDATORY,
-																																																																																												Grouped,
-																																																																																												AAA_AVP_LIST
-																																																																																														*)
-																																																																																												cdp_avp_get(
-																																																																																														Subscription_Id,
-																																																																																														0,
-																																																																																														AAA_AVP_FLAG_MANDATORY,
-																																																																																														Grouped,
-																																																																																														AAA_AVP_LIST)
-
-																																																																																														cdp_avp_ptr(
-																																																																																																Subscription_Id_Data,
-																																																																																																0,
-																																																																																																AAA_AVP_FLAG_MANDATORY,
-																																																																																																UTF8String,
-																																																																																																str)
-
-																																																																																																cdp_avp(Subscription_Id_Type,
-																																																																																																		0,
-																																																																																																		AAA_AVP_FLAG_MANDATORY, Enumerated,
-																																																																																																		int32_t)
-
-																																																																																																		cdp_avp(Tariff_Change_Usage,
-																																																																																																				0,
-																																																																																																				AAA_AVP_FLAG_MANDATORY,
-																																																																																																				Enumerated,
-																																																																																																				int32_t)
-
-																																																																																																				cdp_avp(Tariff_Time_Change, 0, AAA_AVP_FLAG_MANDATORY, Time, time_t)
-
-																																																																																																						cdp_avp_add_ptr(
-																																																																																																								Unit_Value,
-																																																																																																								0,
-																																																																																																								AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *)
-																																																																																																								cdp_avp_get(
-																																																																																																										Unit_Value,
-																																																																																																										0,
-																																																																																																										AAA_AVP_FLAG_MANDATORY,
-																																																																																																										Grouped,
-																																																																																																										AAA_AVP_LIST)
-
-																																																																																																										cdp_avp_add_ptr(
-																																																																																																												Used_Service_Unit,
-																																																																																																												0,
-																																																																																																												AAA_AVP_FLAG_MANDATORY,
-																																																																																																												Grouped,
-																																																																																																												AAA_AVP_LIST
-																																																																																																														*)
-																																																																																																												cdp_avp_get(
-																																																																																																														Used_Service_Unit,
-																																																																																																														0,
-																																																																																																														AAA_AVP_FLAG_MANDATORY,
-																																																																																																														Grouped,
-																																																																																																														AAA_AVP_LIST)
-
-																																																																																																														cdp_avp_add_ptr(
-																																																																																																																User_Equipment_Info,
-																																																																																																																0,
-																																																																																																																0,
-																																																																																																																Grouped,
-																																																																																																																AAA_AVP_LIST
-																																																																																																																		*) cdp_avp_get(User_Equipment_Info, 0, 0,
-																																																																																																																Grouped,
-																																																																																																																AAA_AVP_LIST)
-
-																																																																																																																cdp_avp(User_Equipment_Info_Type,
-																																																																																																																		0,
-																																																																																																																		0,
-																																																																																																																		Enumerated,
-																																																																																																																		int32_t)
-
-																																																																																																																		cdp_avp_ptr(
-																																																																																																																				User_Equipment_Info_Value,
-																																																																																																																				0,
-																																																																																																																				0,
-																																																																																																																				OctetString,
-																																																																																																																				str)
-
-																																																																																																																				cdp_avp(Value_Digits,
-																																																																																																																						0,
-																																																																																																																						AAA_AVP_FLAG_MANDATORY,
-																																																																																																																						Integer64,
-																																																																																																																						int64_t)
-
-																																																																																																																						cdp_avp(Validity_Time,
-																																																																																																																								0,
-																																																																																																																								AAA_AVP_FLAG_MANDATORY,
-																																																																																																																								Unsigned32,
-																																																																																																																								uint32_t)
-
-/*
- * From here-on you can define/export/init/declare functions which can not be generate with the macros
- */
+cdp_avp(CC_Input_Octets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
+		uint64_t)
+
+cdp_avp_add_ptr(CC_Money, 0, AAA_AVP_FLAG_MANDATORY, Grouped,
+		AAA_AVP_LIST *)
+cdp_avp_get(CC_Money, 0, AAA_AVP_FLAG_MANDATORY,
+		Grouped, AAA_AVP_LIST)
+
+cdp_avp(CC_Output_Octets, 0,
+		AAA_AVP_FLAG_MANDATORY, Unsigned64,
+		uint64_t)
+
+cdp_avp(CC_Request_Number, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32, uint32_t)
+
+cdp_avp(CC_Request_Type, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated, int32_t)
+
+cdp_avp(CC_Service_Specific_Units,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned64,
+		uint64_t)
+
+cdp_avp(CC_Session_Failover,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(CC_Sub_Session_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned64,
+		uint64_t)
+
+cdp_avp(CC_Time,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(CC_Total_Octets,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned64,
+		uint64_t)
+
+cdp_avp(CC_Unit_Type,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Check_Balance_Result,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp_add_ptr(
+		Cost_Information,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Cost_Information,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_ptr(
+		Cost_Unit,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp(Credit_Control, 0, AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Credit_Control_Failure_Handling,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Currency_Code,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(Direct_Debiting_Failure_Handling,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Exponent, 0,
+		AAA_AVP_FLAG_MANDATORY,
+		Integer32,
+		int32_t)
+
+cdp_avp(Final_Unit_Action,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp_add_ptr(Final_Unit_Indication, 0, AAA_AVP_FLAG_MANDATORY, Grouped,
+		AAA_AVP_LIST *)
+cdp_avp_get(
+		Final_Unit_Indication,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_add_ptr(
+		Granted_Service_Unit,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Granted_Service_Unit,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp(G_S_U_Pool_Identifier,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_add_ptr(
+		G_S_U_Pool_Reference, 0, AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *)
+cdp_avp_get(
+		G_S_U_Pool_Reference,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_add_ptr(
+		Multiple_Services_Credit_Control,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Multiple_Services_Credit_Control,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp(Multiple_Services_Indicator, 0, AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Rating_Group,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp(Redirect_Address_Type,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp_add_ptr(
+		Redirect_Server,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped, AAA_AVP_LIST *)
+cdp_avp_get(Redirect_Server,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_ptr(
+		Redirect_Server_Address, 0, AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp(Requested_Action,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp_add_ptr(
+		Requested_Service_Unit,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(Requested_Service_Unit, 0, AAA_AVP_FLAG_MANDATORY,
+		Grouped, AAA_AVP_LIST)
+
+cdp_avp_ptr(
+		Restriction_Filter_Rule,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		IPFilterRule,
+		str)
+
+cdp_avp_ptr(
+		Service_Context_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp(Service_Identifier,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_add_ptr(Service_Parameter_Info,
+		0,
+		0,
+		Grouped, AAA_AVP_LIST *)
+cdp_avp_get(
+		Service_Parameter_Info, 0, 0, Grouped, AAA_AVP_LIST)
+
+cdp_avp(Service_Parameter_Type,
+		0,
+		0,
+		Unsigned32,
+		uint32_t)
+
+cdp_avp_ptr(
+		Service_Parameter_Value,
+		0,
+		0,
+		OctetString,
+		str)
+
+cdp_avp_add_ptr(
+		Subscription_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST
+		*)
+cdp_avp_get(
+		Subscription_Id,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_ptr(
+		Subscription_Id_Data,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		UTF8String,
+		str)
+
+cdp_avp(Subscription_Id_Type,
+		0,
+		AAA_AVP_FLAG_MANDATORY, Enumerated,
+		int32_t)
+
+cdp_avp(Tariff_Change_Usage,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Enumerated,
+		int32_t)
+
+cdp_avp(Tariff_Time_Change, 0, AAA_AVP_FLAG_MANDATORY, Time, time_t)
+
+cdp_avp_add_ptr(
+		Unit_Value,
+		0,
+		AAA_AVP_FLAG_MANDATORY, Grouped, AAA_AVP_LIST *)
+cdp_avp_get(
+		Unit_Value,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_add_ptr(
+		Used_Service_Unit,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(
+		Used_Service_Unit,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp_add_ptr(
+		User_Equipment_Info,
+		0,
+		0,
+		Grouped,
+		AAA_AVP_LIST*)
+cdp_avp_get(User_Equipment_Info, 0, 0,
+		Grouped,
+		AAA_AVP_LIST)
+
+cdp_avp(User_Equipment_Info_Type,
+		0,
+		0,
+		Enumerated,
+		int32_t)
+
+cdp_avp_ptr(
+		User_Equipment_Info_Value,
+		0,
+		0,
+		OctetString,
+		str)
+
+cdp_avp(Value_Digits,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Integer64,
+		int64_t)
+
+cdp_avp(Validity_Time,
+		0,
+		AAA_AVP_FLAG_MANDATORY,
+		Unsigned32,
+		uint32_t)
+
+	/*
+	 * From here-on you can define/export/init/declare functions which can not be generate with the macros
+	 */
 
 
 #if defined(CDP_AVP_DEFINITION)
 #if defined(CDP_AVP_DEFINITION)
 
 
-		/*
+	/*
 	 * Put here your supplimentary definitions. Typically:
 	 * Put here your supplimentary definitions. Typically:
 	 * 
 	 * 
 	 * int <function1>(param1)
 	 * int <function1>(param1)
@@ -521,8 +519,8 @@ cdp_avp_ptr(CC_Correlation_Id, 0, 0, OctetString, str)
 	 * 
 	 * 
 	 */
 	 */
 
 
-		int cdp_avp_add_Subscription_Id_Group(AAA_AVP_LIST *list, int32_t type,
-				str data, AVPDataStatus data_do)
+int cdp_avp_add_Subscription_Id_Group(AAA_AVP_LIST *list, int32_t type,
+		str data, AVPDataStatus data_do)
 {
 {
 	AAA_AVP_LIST list_grp = {0, 0};
 	AAA_AVP_LIST list_grp = {0, 0};
 	if(!cdp_avp_add_Subscription_Id_Type(&list_grp, type))
 	if(!cdp_avp_add_Subscription_Id_Type(&list_grp, type))
@@ -531,7 +529,7 @@ cdp_avp_ptr(CC_Correlation_Id, 0, 0, OctetString, str)
 		goto error;
 		goto error;
 	return cdp_avp_add_to_list(
 	return cdp_avp_add_to_list(
 			list, cdp_avp_new_Grouped(AVP_Subscription_Id,
 			list, cdp_avp_new_Grouped(AVP_Subscription_Id,
-						  AAA_AVP_FLAG_MANDATORY, 0, &list_grp, AVP_FREE_DATA));
+				AAA_AVP_FLAG_MANDATORY, 0, &list_grp, AVP_FREE_DATA));
 error:
 error:
 	if(data_do == AVP_FREE_DATA && data.s)
 	if(data_do == AVP_FREE_DATA && data.s)
 		shm_free(data.s);
 		shm_free(data.s);
@@ -579,7 +577,7 @@ int cdp_avp_add_User_Equipment_Info_Group(
 		goto error;
 		goto error;
 	return cdp_avp_add_to_list(
 	return cdp_avp_add_to_list(
 			list, cdp_avp_new_Grouped(AVP_User_Equipment_Info,
 			list, cdp_avp_new_Grouped(AVP_User_Equipment_Info,
-						  AAA_AVP_FLAG_MANDATORY, 0, &list_grp, AVP_FREE_DATA));
+				AAA_AVP_FLAG_MANDATORY, 0, &list_grp, AVP_FREE_DATA));
 error:
 error:
 	if(data_do == AVP_FREE_DATA && data.s)
 	if(data_do == AVP_FREE_DATA && data.s)
 		shm_free(data.s);
 		shm_free(data.s);
@@ -618,14 +616,14 @@ error:
 
 
 #elif defined(CDP_AVP_EXPORT)
 #elif defined(CDP_AVP_EXPORT)
 
 
-		/*
-	 * Put here your supplimentary exports in the format: 
-	 * 	<function_type1> <nice_function_name1>; 
-	 *  <function_type2> <nice_function_name1>;
-	 *  ...
-	 *  
-	 */
-		cdp_avp_add_Subscription_Id_Group_f add_Subscription_Id_Group;
+/*
+ * Put here your supplimentary exports in the format: 
+ * 	<function_type1> <nice_function_name1>; 
+ *  <function_type2> <nice_function_name1>;
+ *  ...
+ *  
+ */
+cdp_avp_add_Subscription_Id_Group_f add_Subscription_Id_Group;
 cdp_avp_get_Subscription_Id_Group_f get_Subscription_Id_Group;
 cdp_avp_get_Subscription_Id_Group_f get_Subscription_Id_Group;
 
 
 cdp_avp_add_User_Equipment_Info_Group_f add_User_Equipment_Info_Group;
 cdp_avp_add_User_Equipment_Info_Group_f add_User_Equipment_Info_Group;
@@ -633,31 +631,31 @@ cdp_avp_get_User_Equipment_Info_Group_f get_User_Equipment_Info_Group;
 
 
 #elif defined(CDP_AVP_INIT)
 #elif defined(CDP_AVP_INIT)
 
 
-		/*
-	 * Put here your supplimentary inits in the format: 
-	 * 	<function1>,
-	 *  <function2>,
-	 *  ...
-	 * 
-	 * Make sure you keep the same order as in export!
-	 * 
-	 */
-		cdp_avp_add_Subscription_Id_Group,
-		cdp_avp_get_Subscription_Id_Group,
+/*
+ * Put here your supplimentary inits in the format: 
+ * 	<function1>,
+ *  <function2>,
+ *  ...
+ * 
+ * Make sure you keep the same order as in export!
+ * 
+ */
+cdp_avp_add_Subscription_Id_Group,
+	cdp_avp_get_Subscription_Id_Group,
 
 
-		cdp_avp_add_User_Equipment_Info_Group,
-		cdp_avp_get_User_Equipment_Info_Group,
+	cdp_avp_add_User_Equipment_Info_Group,
+	cdp_avp_get_User_Equipment_Info_Group,
 
 
 #elif defined(CDP_AVP_REFERENCE)
 #elif defined(CDP_AVP_REFERENCE)
-		/*
+	/*
 	 * Put here what you want to get in the reference. Typically:
 	 * Put here what you want to get in the reference. Typically:
 	 * <function1>
 	 * <function1>
 	 * <function2>
 	 * <function2>
 	 * ... 
 	 * ... 
 	 * 
 	 * 
 	 */
 	 */
-		int CDP_AVP_MODULE.add_Subscription_Id_Group(AAA_AVP_LIST *list,
-				int32_t type, str data, AVPDataStatus data_do);
+int CDP_AVP_MODULE.add_Subscription_Id_Group(AAA_AVP_LIST *list,
+		int32_t type, str data, AVPDataStatus data_do);
 int CDP_AVP_MODULE.get_Subscription_Id_Group(
 int CDP_AVP_MODULE.get_Subscription_Id_Group(
 		AAA_AVP_LIST list, int32_t *type, str *data, AAA_AVP **avp_ptr);
 		AAA_AVP_LIST list, int32_t *type, str *data, AAA_AVP **avp_ptr);
 
 
@@ -673,30 +671,30 @@ int CDP_AVP_MODULE.get_User_Equipment_Info_Group(
 #else
 #else
 
 
 /*
 /*
-	 * Put here your definitions according to the declarations, exports, init, etc above. Typically:
-	 * 
-	 * int <function1(params1);>
-	 * typedef int <*function_type1>(params1);
-	 * 
-	 * int <function2(param2);>
-	 * typedef int <*function_type2>(params2);
-	 * 
-	 * ...
-	 *  
-	 */
+ * Put here your definitions according to the declarations, exports, init, etc above. Typically:
+ * 
+ * int <function1(params1);>
+ * typedef int <*function_type1>(params1);
+ * 
+ * int <function2(param2);>
+ * typedef int <*function_type2>(params2);
+ * 
+ * ...
+ *  
+ */
 
 
 
 
 #ifndef _CDP_AVP_CCAPP_H_2
 #ifndef _CDP_AVP_CCAPP_H_2
 #define _CDP_AVP_CCAPP_H_2
 #define _CDP_AVP_CCAPP_H_2
 
 
 
 
-																																																																																																																								int cdp_avp_add_Subscription_Id_Group(
-																																																																																																																										AAA_AVP_LIST
-																																																																																																																												*list,
-																																																																																																																										int32_t type,
-																																																																																																																										str data,
-																																																																																																																										AVPDataStatus
-																																																																																																																												data_do);
+int cdp_avp_add_Subscription_Id_Group(
+		AAA_AVP_LIST
+		*list,
+		int32_t type,
+		str data,
+		AVPDataStatus
+		data_do);
 typedef int (*cdp_avp_add_Subscription_Id_Group_f)(
 typedef int (*cdp_avp_add_Subscription_Id_Group_f)(
 		AAA_AVP_LIST *list, int32_t type, str data, AVPDataStatus data_do);
 		AAA_AVP_LIST *list, int32_t type, str data, AVPDataStatus data_do);
 
 
@@ -724,3 +722,4 @@ typedef int (*cdp_avp_get_User_Equipment_Info_Group_f)(
 #define CDP_AVP_UNDEF_MACROS
 #define CDP_AVP_UNDEF_MACROS
 #include "macros.h"
 #include "macros.h"
 #undef CDP_AVP_UNDEF_MACROS
 #undef CDP_AVP_UNDEF_MACROS
+/* clang-format on */

Fichier diff supprimé car celui-ci est trop grand
+ 1735 - 1715
src/modules/cdp_avp/epcapp.h


Fichier diff supprimé car celui-ci est trop grand
+ 551 - 554
src/modules/cdp_avp/imsapp.h


+ 53 - 56
src/modules/cdp_avp/nasapp.h

@@ -155,26 +155,23 @@
  */
  */
 
 
 
 
+/* clang-format off */
 cdp_avp(Accounting_Input_Octets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
 cdp_avp(Accounting_Input_Octets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
 		uint64_t)
 		uint64_t)
 
 
-		cdp_avp(Accounting_Input_Packets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
-				uint64_t)
-
-				cdp_avp(Accounting_Output_Octets, 0, AAA_AVP_FLAG_MANDATORY,
-						Unsigned64, uint64_t)
+cdp_avp(Accounting_Input_Packets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
+		uint64_t)
 
 
-						cdp_avp(Accounting_Output_Packets, 0,
-								AAA_AVP_FLAG_MANDATORY, Unsigned64, uint64_t)
+cdp_avp(Accounting_Output_Octets, 0, AAA_AVP_FLAG_MANDATORY,
+		Unsigned64, uint64_t)
 
 
-								cdp_avp_ptr(Filter_Id, 0,
-										AAA_AVP_FLAG_MANDATORY, UTF8String, str)
+cdp_avp(Accounting_Output_Packets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
+		uint64_t)
 
 
+cdp_avp_ptr(Filter_Id, 0, AAA_AVP_FLAG_MANDATORY, UTF8String, str)
 
 
-										cdp_avp_ptr(Called_Station_Id, 0,
-												AAA_AVP_FLAG_MANDATORY,
-												UTF8String, str)
 
 
+cdp_avp_ptr(Called_Station_Id, 0, AAA_AVP_FLAG_MANDATORY, UTF8String, str)
 
 
 /*
 /*
  * From here-on you can define/export/init/declare functions which can not be generate with the macros
  * From here-on you can define/export/init/declare functions which can not be generate with the macros
@@ -182,17 +179,17 @@ cdp_avp(Accounting_Input_Octets, 0, AAA_AVP_FLAG_MANDATORY, Unsigned64,
 
 
 #if defined(CDP_AVP_DEFINITION)
 #if defined(CDP_AVP_DEFINITION)
 
 
-		/*
-	 * Put here your supplimentary definitions. Typically:
-	 * 
-	 * int <function1>(param1)
-	 * {
-	 *   code1
-	 * }
-	 * 
-	 * 
-	 */
-		int cdp_avp_add_Framed_IP_Address(AAA_AVP_LIST *list, ip_address ip)
+/*
+ * Put here your supplimentary definitions. Typically:
+ * 
+ * int <function1>(param1)
+ * {
+ *   code1
+ * }
+ * 
+ * 
+ */
+int cdp_avp_add_Framed_IP_Address(AAA_AVP_LIST *list, ip_address ip)
 {
 {
 	if(ip.ai_family != AF_INET) {
 	if(ip.ai_family != AF_INET) {
 		LOG(L_ERR, "Trying to build from non IPv4 address!\n");
 		LOG(L_ERR, "Trying to build from non IPv4 address!\n");
@@ -284,14 +281,14 @@ int cdp_avp_get_Framed_IPv6_Prefix(
 
 
 #elif defined(CDP_AVP_EXPORT)
 #elif defined(CDP_AVP_EXPORT)
 
 
-		/*
-	 * Put here your supplimentary exports in the format: 
-	 * 	<function_type1> <nice_function_name1>; 
-	 *  <function_type2> <nice_function_name1>;
-	 *  ...
-	 *  
-	 */
-		cdp_avp_add_Framed_IP_Address_f add_Framed_IP_Address;
+/*
+ * Put here your supplimentary exports in the format: 
+ * 	<function_type1> <nice_function_name1>; 
+ *  <function_type2> <nice_function_name1>;
+ *  ...
+ *  
+ */
+cdp_avp_add_Framed_IP_Address_f add_Framed_IP_Address;
 cdp_avp_get_Framed_IP_Address_f get_Framed_IP_Address;
 cdp_avp_get_Framed_IP_Address_f get_Framed_IP_Address;
 
 
 cdp_avp_add_Framed_IPv6_Prefix_f add_Framed_IPv6_Prefix;
 cdp_avp_add_Framed_IPv6_Prefix_f add_Framed_IPv6_Prefix;
@@ -300,19 +297,19 @@ cdp_avp_get_Framed_IPv6_Prefix_f get_Framed_IPv6_Prefix;
 
 
 #elif defined(CDP_AVP_INIT)
 #elif defined(CDP_AVP_INIT)
 
 
-		/*
-	 * Put here your supplimentary inits in the format: 
-	 * 	<function1>,
-	 *  <function2>,
-	 *  ...
-	 * 
-	 * Make sure you keep the same order as in export!
-	 * 
-	 */
-		cdp_avp_add_Framed_IP_Address,
-		cdp_avp_get_Framed_IP_Address,
+/*
+ * Put here your supplimentary inits in the format: 
+ * 	<function1>,
+ *  <function2>,
+ *  ...
+ * 
+ * Make sure you keep the same order as in export!
+ * 
+ */
+cdp_avp_add_Framed_IP_Address,
+cdp_avp_get_Framed_IP_Address,
 
 
-		cdp_avp_add_Framed_IPv6_Prefix, cdp_avp_get_Framed_IPv6_Prefix,
+cdp_avp_add_Framed_IPv6_Prefix, cdp_avp_get_Framed_IPv6_Prefix,
 
 
 #elif defined(CDP_AVP_REFERENCE)
 #elif defined(CDP_AVP_REFERENCE)
 		/*
 		/*
@@ -322,8 +319,7 @@ cdp_avp_get_Framed_IPv6_Prefix_f get_Framed_IPv6_Prefix;
 	 * ... 
 	 * ... 
 	 * 
 	 * 
 	 */
 	 */
-		int CDP_AVP_MODULE.add_Framed_IP_Address(
-				AAA_AVP_LIST *list, ip_address ip);
+int CDP_AVP_MODULE.add_Framed_IP_Address(AAA_AVP_LIST *list, ip_address ip);
 int CDP_AVP_MODULE.get_Framed_IP_Address(
 int CDP_AVP_MODULE.get_Framed_IP_Address(
 		AAA_AVP_LIST list, ip_address *ip, AAA_AVP **avp_ptr);
 		AAA_AVP_LIST list, ip_address *ip, AAA_AVP **avp_ptr);
 
 
@@ -339,17 +335,17 @@ int CDP_AVP_MODULE.get_Framed_IPv6_Prefix(
 #else
 #else
 
 
 /*
 /*
-	 * Put here your definitions according to the declarations, exports, init, etc above. Typically:
-	 * 
-	 * int <function1(params1);>
-	 * typedef int <*function_type1>(params1);
-	 * 
-	 * int <function2(param2);>
-	 * typedef int <*function_type2>(params2);
-	 * 
-	 * ...
-	 *  
-	 */
+ * Put here your definitions according to the declarations, exports, init, etc above. Typically:
+ * 
+ * int <function1(params1);>
+ * typedef int <*function_type1>(params1);
+ * 
+ * int <function2(param2);>
+ * typedef int <*function_type2>(params2);
+ * 
+ * ...
+ *  
+ */
 
 
 
 
 #ifndef _CDP_AVP_NASAPP_H_2
 #ifndef _CDP_AVP_NASAPP_H_2
@@ -384,3 +380,4 @@ typedef int (*cdp_avp_get_Framed_IPv6_Prefix_f)(
 #define CDP_AVP_UNDEF_MACROS
 #define CDP_AVP_UNDEF_MACROS
 #include "macros.h"
 #include "macros.h"
 #undef CDP_AVP_UNDEF_MACROS
 #undef CDP_AVP_UNDEF_MACROS
+/* clang-format on */

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff