[hipl-commit] [trunk] Rev 3664: fixed still existing TABs in hipd

  • From: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 16:11:39 +0200

Committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
Date: Wed Feb 17 15:11:29 2010 +0100
Revision: 3664
Revision-id: rene.hummen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  fixed still existing TABs in hipd

Modified:
  M  hipd/esp_prot_anchordb.c
  M  hipd/esp_prot_hipd_msg.c
  M  hipd/esp_prot_light_update.c
  M  hipd/hadb.c
  M  hipd/hadb_legacy.c
  M  hipd/hi3.c
  M  hipd/hit_to_ip.c
  M  hipd/maintenance.c
  M  hipd/nsupdate.c
  M  hipd/oppdb.c
  M  hipd/output.c
  M  hipd/user_ipsec_hipd_msg.c
  M  hipd/user_ipsec_sadb_api.c

=== modified file 'hipd/esp_prot_anchordb.c'
--- hipd/esp_prot_anchordb.c    2010-02-11 09:57:04 +0000
+++ hipd/esp_prot_anchordb.c    2010-02-17 14:11:29 +0000
@@ -74,8 +74,8 @@
 
 /** handles a user-message sent by the firewall when the bex-store is updated
  *
- * @param      msg the user-message sent by fw
- * @return     0 if ok, != 0 else
+ * @param msg   the user-message sent by fw
+ * @return      0 if ok, != 0 else
  */
 int anchor_db_update(const struct hip_common *msg)
 {
@@ -163,8 +163,8 @@
 
 /** returns number of elements for the given transform
  *
- * @param      transform the ESP protection extension transform
- * @return     number of elements
+ * @param transform     the ESP protection extension transform
+ * @return              number of elements
  */
 int anchor_db_get_num_anchors(const uint8_t transform)
 {
@@ -179,8 +179,8 @@
 
 /* returns an unused anchor element for the given transform
  *
- * @param      transform the ESP protection extension transform
- * @return     anchor, NULL if empty
+ * @param transform     the ESP protection extension transform
+ * @return              anchor, NULL if empty
  */
 unsigned char *anchor_db_get_anchor(const uint8_t transform)
 {
@@ -218,8 +218,8 @@
 
 /** returns the anchor-length for a given transform
  *
- * @param      transform the ESP protection extension transform
- * @return     anchor-length, 0 for UNUSED transform
+ * @param transform     the ESP protection extension transform
+ * @return              anchor-length, 0 for UNUSED transform
  */
 int anchor_db_get_anchor_length(const uint8_t transform)
 {
@@ -230,8 +230,8 @@
 
 /** returns the hash-item-length for a given transform
  *
- * @param      transform the ESP protection extension transform
- * @return     hash-item-length, 0 for UNUSED transform
+ * @param transform     the ESP protection extension transform
+ * @return              hash-item-length, 0 for UNUSED transform
  */
 int anchor_db_get_hash_item_length(const uint8_t transform)
 {

=== modified file 'hipd/esp_prot_hipd_msg.c'
--- hipd/esp_prot_hipd_msg.c    2010-02-11 17:21:17 +0000
+++ hipd/esp_prot_hipd_msg.c    2010-02-17 14:11:29 +0000
@@ -25,12 +25,12 @@
 /**
  * Sends second update message for a public-key-based anchor element update
  *
- * @param recv_update  received first update message
- * @param entry                        host association for the received update
- * @param src_ip               src ip address
- * @param dst_ip               dst ip address
- * @param spi                  spi of IPsec association
- * @return 0 on success, < 0 in case of an error
+ * @param recv_update   received first update message
+ * @param entry         host association for the received update
+ * @param src_ip        src ip address
+ * @param dst_ip        dst ip address
+ * @param spi           spi of IPsec association
+ * @return              0 on success, < 0 in case of an error
  */
 static int esp_prot_send_update_response(const hip_common_t *recv_update,
                                          hip_ha_t *entry,
@@ -93,9 +93,9 @@
  * Selects the preferred ESP protection extension transform from the set of
  * local and peer preferred transforms
  *
- * @param      num_transforms amount of transforms in the transforms array 
passed
- * @param      transforms the transforms array
- * @return     the overall preferred transform
+ * @param num_transforms    amount of transforms in the transforms array passed
+ * @param transforms        the transforms array
+ * @return                  the overall preferred transform
  */
 static uint8_t esp_prot_select_transform(const int num_transforms,
                                          const uint8_t transforms[])
@@ -131,8 +131,8 @@
 /** sets the preferred ESP protection extension transforms array transferred
  * from the firewall
  *
- * @param      msg the user-message sent by the firewall
- * @return     0 if ok, != 0 else
+ * @param msg   the user-message sent by the firewall
+ * @return      0 if ok, != 0 else
  */
 int esp_prot_set_preferred_transforms(const struct hip_common *msg)
 {
@@ -183,8 +183,8 @@
 /** handles the user-message sent by fw when a new anchor has to be set
  * up at the peer host
  *
- * @param      msg the user-message sent by the firewall
- * @return     0 if ok, != 0 else
+ * @param msg   the user-message sent by the firewall
+ * @return      0 if ok, != 0 else
  */
 int esp_prot_handle_trigger_update_msg(const struct hip_common *msg)
 {
@@ -337,8 +337,8 @@
 /** handles the user-message sent by fw when the anchors have changed in
  * the sadb from next to active
  *
- * @param      msg the user-message sent by the firewall
- * @return     0 if ok, != 0 else
+ * @param msg   the user-message sent by the firewall
+ * @return      0 if ok, != 0 else
  */
 int esp_prot_handle_anchor_change_msg(const struct hip_common *msg)
 {
@@ -419,11 +419,11 @@
 /** sets the ESP protection extension transform and anchor in user-messages
  * sent to the firewall in order to add a new SA
  *
- * @param      entry the host association entry for this connection
- * @param      msg the user-message sent by the firewall
- * @param      direction direction of the entry to be created
- * @param      update this was triggered by an update
- * @return     0 if ok, != 0 else
+ * @param entry         the host association entry for this connection
+ * @param msg           the user-message sent by the firewall
+ * @param direction     direction of the entry to be created
+ * @param update        this was triggered by an update
+ * @return              0 if ok, != 0 else
  */
 int esp_prot_sa_add(hip_ha_t *entry, struct hip_common *msg, const int 
direction,
                     const int update)
@@ -502,8 +502,8 @@
 /**
  * Adds the supported esp protection transform to an R1 message
  *
- * @param msg  the hip message to be sent
- * @return 0 on success, -1 in case of an error
+ * @param msg   the hip message to be sent
+ * @return      0 on success, -1 in case of an error
  */
 int esp_prot_r1_add_transforms(hip_common_t *msg)
 {
@@ -534,9 +534,9 @@
 /**
  * Handles the esp protection transforms included in an R1 message
  *
- * @param entry                hip association for the received R1 message
- * @param ctx          packet context for the received R1 message
- * @return always 0
+ * @param entry     hip association for the received R1 message
+ * @param ctx       packet context for the received R1 message
+ * @return          always 0
  */
 int esp_prot_r1_handle_transforms(hip_ha_t *entry, struct hip_context *ctx)
 {
@@ -586,10 +586,10 @@
 /**
  * Adds an anchor element with the negotiated transform to an I2 message
  *
- * @param i2           the hip message to be sent
- * @param entry                hip association for the connection
- * @param ctx          packet context for the I2 message
- * @return 0 on success, -1 in case of an error
+ * @param i2        the hip message to be sent
+ * @param entry     hip association for the connection
+ * @param ctx       packet context for the I2 message
+ * @return          0 on success, -1 in case of an error
  */
 int esp_prot_i2_add_anchor(hip_common_t *i2, hip_ha_t *entry,
                            const struct hip_context *ctx)
@@ -664,9 +664,9 @@
 /**
  * Handles the received anchor element of an I2 message
  *
- * @param entry                hip association for the connection
- * @param ctx          packet context for the I2 message
- * @return 0 on success, -1 in case of an error
+ * @param entry     hip association for the connection
+ * @param ctx       packet context for the I2 message
+ * @return          0 on success, -1 in case of an error
  */
 int esp_prot_i2_handle_anchor(hip_ha_t *entry, const struct hip_context *ctx)
 {
@@ -742,9 +742,9 @@
 /**
  * Adds an anchor element with the negotiated transform to an R2 message
  *
- * @param r2           the hip message to be sent
- * @param entry                hip association for the connection
- * @return 0 on success, -1 in case of an error
+ * @param r2        the hip message to be sent
+ * @param entry     hip association for the connection
+ * @return          0 on success, -1 in case of an error
  */
 int esp_prot_r2_add_anchor(hip_common_t *r2, hip_ha_t *entry)
 {
@@ -806,9 +806,9 @@
 /**
  * Handles the received anchor element of an R2 message
  *
- * @param entry                hip association for the connection
- * @param ctx          packet context for the R2 message
- * @return 0 on success, -1 in case of an error
+ * @param entry     hip association for the connection
+ * @param ctx       packet context for the R2 message
+ * @return          0 on success, -1 in case of an error
  */
 int esp_prot_r2_handle_anchor(hip_ha_t *entry, const struct hip_context *ctx)
 {
@@ -881,11 +881,11 @@
 /**
  * Processes pure ANCHOR-UPDATEs
  *
- * @param recv_update  the received hip update
- * @param entry                        hip association for the connection
- * @param src_ip               src ip address
- * @param dst_ip               dst ip address
- * @return 0 on success, -1 in case of an error
+ * @param recv_update   the received hip update
+ * @param entry         hip association for the connection
+ * @param src_ip        src ip address
+ * @param dst_ip        dst ip address
+ * @return              0 on success, -1 in case of an error
  */
 int esp_prot_handle_update(const hip_common_t *recv_update, hip_ha_t *entry,
                            const in6_addr_t *src_ip, const in6_addr_t *dst_ip)
@@ -950,9 +950,9 @@
 /**
  * Adds anchor elements to a HIP update message
  *
- * @param update       the received hip update
- * @param entry                hip association for the connection
- * @return 0 on success, -1 in case of an error
+ * @param update    the received hip update
+ * @param entry     hip association for the connection
+ * @return          0 on success, -1 in case of an error
  */
 int esp_prot_update_add_anchor(hip_common_t *update, hip_ha_t *entry)
 {
@@ -1015,12 +1015,12 @@
 /**
  * Handles anchor elements in a HIP update message
  *
- * @param recv_update  the received hip update
- * @param entry                        hip association for the connection
- * @param src_ip               src ip address
- * @param dst_ip               dst ip address
- * @param spi                  the ipsec spi number
- * @return 0 on success, -1 in case of an error
+ * @param recv_update   the received hip update
+ * @param entry         hip association for the connection
+ * @param src_ip        src ip address
+ * @param dst_ip        dst ip address
+ * @param spi           the ipsec spi number
+ * @return              0 on success, -1 in case of an error
  */
 int esp_prot_update_handle_anchor(const hip_common_t *recv_update,
                                   hip_ha_t *entry,

=== modified file 'hipd/esp_prot_light_update.c'
--- hipd/esp_prot_light_update.c        2010-02-11 17:21:17 +0000
+++ hipd/esp_prot_light_update.c        2010-02-17 14:11:29 +0000
@@ -68,13 +68,13 @@
 /**
  * sends an HHL-based update message
  *
- * @param entry                                host association for this 
connection
- * @param anchor_offset                offset of the anchor in the link tree
- * @param secret                       secrets for anchor elements to be sent
- * @param secret_length                length of each secret
- * @param branch_nodes         branch nodes for anchor elements to be sent
- * @param branch_length                length of each branch
- * @return 0 in case of succcess, -1 otherwise
+ * @param entry             host association for this connection
+ * @param anchor_offset     offset of the anchor in the link tree
+ * @param secret            secrets for anchor elements to be sent
+ * @param secret_length     length of each secret
+ * @param branch_nodes      branch nodes for anchor elements to be sent
+ * @param branch_length     length of each branch
+ * @return                  0 in case of succcess, -1 otherwise
  */
 int esp_prot_send_light_update(hip_ha_t *entry,
                                const int anchor_offset[],
@@ -167,11 +167,11 @@
 /**
  * receives and processes an HHL-based update message
  *
- * @param msg          received hip message
- * @param src_addr     src ip address
- * @param dst_addr     dst ip address
- * @param entry                host association for this connection
- * @return 0 in case of succcess, -1 otherwise
+ * @param msg       received hip message
+ * @param src_addr  src ip address
+ * @param dst_addr  dst ip address
+ * @param entry     host association for this connection
+ * @return          0 in case of succcess, -1 otherwise
  */
 int esp_prot_receive_light_update(hip_common_t *msg,
                                   const in6_addr_t *src_addr,

=== modified file 'hipd/hadb.c'
--- hipd/hadb.c 2010-02-12 10:47:40 +0000
+++ hipd/hadb.c 2010-02-17 14:11:29 +0000
@@ -1209,7 +1209,7 @@
      * -Lauri 25.09.2007 15:11. */
     /* Wirtz 27/11/09 pointers are completely incomp. ( 1param to 4 params )
      *  uncommented, please fix or remove completely */
-    // default_input_filter_func_set.hip_input_filter  = hip_agent_filter;
+    // default_input_filter_func_set.hip_input_filter = hip_agent_filter;
     // default_output_filter_func_set.hip_output_filter = hip_agent_filter;
 
     /* Tao Wan and Miika komu added, 24 Jan, 2008 for IPsec (userspace / 
kernel part)
@@ -1927,7 +1927,7 @@
     dst_hit = (hip_hit_t *) hip_get_param_contents(msg, HIP_PARAM_IPV6_ADDR);
     HIP_DEBUG_HIT("src_hit from local address request: ", src_hit);
     HIP_DEBUG_HIT("dst_hit from local address request: ", dst_hit);
-/*     if (ptr) {
+/*if (ptr) {
  *              memcpy(peer_hit, ptr, sizeof(hip_hit_t));
  *              HIP_DEBUG_HIT("peer_hit", peer_hit);
  *fallback = 0;

=== modified file 'hipd/hadb_legacy.c'
--- hipd/hadb_legacy.c  2010-02-11 09:57:04 +0000
+++ hipd/hadb_legacy.c  2010-02-17 14:11:29 +0000
@@ -62,7 +62,7 @@
 
     // 99999: REMOVE
     /* assumes already locked entry */
-/*     list_for_each_safe(item, tmp, entry->spis_out_old, ii)
+/*  list_for_each_safe(item, tmp, entry->spis_out_old, ii)
  *      {
  *              spi_out = list_entry(item);
  *              list_for_each_safe(a_item, a_tmp, entry->peer_addresses_old, 
iii)

=== modified file 'hipd/hi3.c'
--- hipd/hi3.c  2010-02-12 10:47:40 +0000
+++ hipd/hi3.c  2010-02-17 14:11:29 +0000
@@ -164,7 +164,7 @@
 
     for (i = 0; i < hi3_pub_tr_count; i++) {
         get_random_bytes(hi3_pri_id[i].x, ID_LEN);
-//             get_random_bytes(key.x, KEY_LEN);
+//      get_random_bytes(key.x, KEY_LEN);
 
         hi3_pub_tr[i] = cl_create_trigger_id(&hi3_pub_id[i], ID_LEN_BITS, 
&hi3_pri_id[i],
                                              CL_TRIGGER_CFLAG_R_CONSTRAINT);

=== modified file 'hipd/hit_to_ip.c'
--- hipd/hit_to_ip.c    2010-02-11 17:21:17 +0000
+++ hipd/hit_to_ip.c    2010-02-17 14:11:29 +0000
@@ -72,7 +72,7 @@
  *
  * Set the zone for hit-to-ip domain lookups
  *
- * @param zone domain as a string, e.g. "hit-to-ip.infrahip.net"
+ * @param zone  domain as a string, e.g. "hit-to-ip.infrahip.net"
  */
 void hip_hit_to_ip_set(const char *zone)
 {
@@ -95,10 +95,10 @@
  *
  * returns 
"5.7.d.1.c.c.8.d.0.6.3.b.a.4.6.2.5.0.5.2.e.4.7.5.e.1.0.0.1.0.0.2.hit-to-ip.infrahip.net"
 for 2001:1e:574e:2505:264a:b360:d8cc:1d75
  *
- * @param hit          HIT as a string
- * @param hostname[out]        buffer for the result
- * @param hostname_len length of the buffer
- * @return      0
+ * @param hit               HIT as a string
+ * @param hostname[out]     buffer for the result
+ * @param hostname_len      length of the buffer
+ * @return                  0
  */
 static int hip_get_hit_to_ip_hostname(const hip_hit_t *hit, const char 
*hostname, const int hostname_len)
 {
@@ -130,9 +130,9 @@
  *
  * checks for ip address for hit preferring IPv4 one
  *
- * @param hit          HIT to look locators for
- * @param retval[out]  buffer for the result
- * @return      0 on success, -1 otherwise
+ * @param hit           HIT to look locators for
+ * @param retval[out]   buffer for the result
+ * @return              0 on success, -1 otherwise
  */
 
 int hip_hit_to_ip(hip_hit_t *hit, struct in6_addr *retval)

=== modified file 'hipd/maintenance.c'
--- hipd/maintenance.c  2010-02-12 10:47:40 +0000
+++ hipd/maintenance.c  2010-02-17 14:11:29 +0000
@@ -176,7 +176,7 @@
     struct hip_common *msg = NULL;
     int n;
 
-/*     if (!hip_agent_is_alive())
+/*if (!hip_agent_is_alive())
  *      {
  *              return (-ENOENT);
  *      }*/

=== modified file 'hipd/nsupdate.c'
--- hipd/nsupdate.c     2010-02-12 10:47:40 +0000
+++ hipd/nsupdate.c     2010-02-17 14:11:29 +0000
@@ -51,7 +51,7 @@
  *
  * This function is an interface to turn on/off DNS updates
  *
- * @param      status  0 unless DNS updates wanted, 1 otherwise
+ * @param status    0 unless DNS updates wanted, 1 otherwise
  */
 
 void hip_set_nsupdate_status(int status)
@@ -78,9 +78,9 @@
  * returns string "name=value"
  * remember to free() the result afterwards
  *
- * @param name string to put before '='
- * @param value string to put after '='
- * @return  newly allocated string with the result or NULL in case of error
+ * @param name      string to put before '='
+ * @param value     string to put after '='
+ * @return          newly allocated string with result or NULL in case of error
  */
 
 static char *make_env(char *name, char *value)
@@ -152,12 +152,14 @@
  * netdev_address_to_str
  *
  * This function converts the netdev_address structure src into
- * a character string, which is copied to a character buffer dst, which is cnt 
bytes long.
+ * a character string, which is copied to a character buffer dst,
+ * which is cnt bytes long.
  *
- * @param src          address in netdev_address structure
- * @param dst[out]     buffer to store the address as string
- * @param cnt          length of the buffer dst
- * @return      On success, a non-null pointer to dst. NULL is returned if 
there was an error, with errno set to indicate the error.
+ * @param src       address in netdev_address structure
+ * @param dst[out]  buffer to store the address as string
+ * @param cnt       length of the buffer dst
+ * @return          On success, a non-null pointer to dst. NULL is returned
+ *                  if there was an error, with errno set to indicate the error
  */
 
 static const char *netdev_address_to_str(struct netdev_address *src, char 
*dst, socklen_t cnt)
@@ -277,9 +279,9 @@
  * run nsupdate with the current HIT
  * called from hip_for_each_hi
  *
- * @param entry        iterator from the cycle
- * @param opaq value of start to pass to run_nsupdate
- * @return  0
+ * @param entry     iterator from the cycle
+ * @param opaq      value of start to pass to run_nsupdate
+ * @return          0
  */
 
 static int run_nsupdate_for_hit(struct hip_host_id_entry *entry, void *opaq)

=== modified file 'hipd/oppdb.c'
--- hipd/oppdb.c        2010-02-11 09:57:04 +0000
+++ hipd/oppdb.c        2010-02-17 14:11:29 +0000
@@ -247,7 +247,7 @@
 
     memset(entry, 0, sizeof(*entry));
 
-//     INIT_LIST_HEAD(&entry->next_entry);
+//INIT_LIST_HEAD(&entry->next_entry);
 
     HIP_LOCK_OPP_INIT(entry);
     //atomic_set(&entry->refcnt,0);
@@ -679,9 +679,9 @@
  * Processes a message that has been sent to hipd from the firewall,
  * telling it to send a tcp packet.
  *
- * @param *msg the message.
- * @param *src the source of the message.
- * @return     an error, if any, during the processing.
+ * @param *msg  the message.
+ * @param *src  the source of the message.
+ * @return      an error, if any, during the processing.
  */
 int hip_opptcp_send_tcp_packet(struct hip_common *msg, const struct 
sockaddr_in6 *src)
 {

=== modified file 'hipd/output.c'
--- hipd/output.c       2010-02-12 10:47:40 +0000
+++ hipd/output.c       2010-02-17 14:11:29 +0000
@@ -7,7 +7,7 @@
  * @author  Mika Kousa
  * @author  Kristian Slavov
  * @author  Samu Varjonen
- * @author     Rene Hummen
+ * @author  Rene Hummen
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
 
@@ -1577,9 +1577,9 @@
     buf = clb->data;
 
     hip_zero_msg_checksum(msg);
-//     msg->checksum = hip_checksum_packet((char *)msg,
-//                                         (struct sockaddr *)&src,
-//                                         (struct sockaddr *)&dst);
+//  msg->checksum = hip_checksum_packet((char *)msg,
+//              (struct sockaddr *)&src,
+//              (struct sockaddr *)&dst);
 
     clb->data_len = msg_len;
 

=== modified file 'hipd/user_ipsec_hipd_msg.c'
--- hipd/user_ipsec_hipd_msg.c  2010-02-11 17:21:17 +0000
+++ hipd/user_ipsec_hipd_msg.c  2010-02-17 14:11:29 +0000
@@ -19,8 +19,8 @@
 /**
  * handles a userspace ipsec activation message sent by the fw
  *
- * @param      msg the message sent by the firewall
- * @return     0, if ok, != 0 else
+ * @param msg   the message sent by the firewall
+ * @return      0, if ok, != 0 else
  */
 int hip_userspace_ipsec_activate(const struct hip_common *msg)
 {
@@ -94,19 +94,19 @@
 
 /** creates a user-message to add a SA to userspace IPsec
  *
- * @param      src_addr outer globally routable source ip address
- * @param      dst_addr outer globally routable destination ip address
- * @param      inner_src_addr inner source address
- * @param      inner_dst_addr inner destination address
- * @param      spi ipsec spi for demultiplexing
- * @param      ealg crypto transform to be used for the SA
- * @param      enc_key raw encryption key
- * @param      auth_key raw authentication key
- * @param      retransmission notification if this event derives from a 
retransmission
- * @param      direction represents inbound or outbound direction
- * @param      update notification if this event derives from an update
- * @param      entry host association entry for this connection
- * @return     the msg, NULL if an error occurred
+ * @param src_addr          outer globally routable source ip address
+ * @param dst_addr          outer globally routable destination ip address
+ * @param inner_src_addr    inner source address
+ * @param inner_dst_addr    inner destination address
+ * @param spi               ipsec spi for demultiplexing
+ * @param ealg              crypto transform to be used for the SA
+ * @param enc_key           raw encryption key
+ * @param auth_key          raw authentication key
+ * @param retransmission    notification if this event is due to retransmission
+ * @param direction         represents inbound or outbound direction
+ * @param update            notification if this event derives from an update
+ * @param entry             host association entry for this connection
+ * @return                  the msg, NULL if an error occurred
  */
 struct hip_common *create_add_sa_msg(const struct in6_addr *saddr,
                                      const struct in6_addr *daddr,
@@ -222,13 +222,13 @@
 
 /** creates a user-message to delete a SA from userspace IPsec
  *
- * @param      spi ipsec spi for demultiplexing
- * @param      src_addr outer globally routable source ip address
- * @param      dst_addr outer globally routable destination ip address
- * @param      family protocol family of above addresses
- * @param      src_port local port for this host association
- * @param      dst_port peer port for this host association
- * @return     the msg, NULL if an error occured
+ * @param spi       ipsec spi for demultiplexing
+ * @param src_addr  outer globally routable source ip address
+ * @param dst_addr  outer globally routable destination ip address
+ * @param family    protocol family of above addresses
+ * @param src_port  local port for this host association
+ * @param dst_port  peer port for this host association
+ * @return          the msg, NULL if an error occured
  */
 struct hip_common *create_delete_sa_msg(const uint32_t spi,
                                         const struct in6_addr *peer_addr,
@@ -286,7 +286,7 @@
 /**
  * create a user-message to flush all SAs from userspace IPsec
  *
- * @return     the msg, NULL if an error occured
+ * @return      the msg, NULL if an error occured
  */
 struct hip_common *create_flush_all_sa_msg(void)
 {

=== modified file 'hipd/user_ipsec_sadb_api.c'
--- hipd/user_ipsec_sadb_api.c  2010-02-11 17:21:17 +0000
+++ hipd/user_ipsec_sadb_api.c  2010-02-17 14:11:29 +0000
@@ -25,8 +25,8 @@
 
 /** generic send function used to send the below created messages
  *
- * @param      msg the message to be sent
- * @return     0, if correct, else != 0
+ * @param msg   the message to be sent
+ * @return      0, if correct, else != 0
  */
 static int hip_userspace_ipsec_send_to_fw(const struct hip_common *msg)
 {
@@ -61,19 +61,19 @@
 /** adds a new SA entry for the specified direction to the sadb in userspace 
ipsec
  * @note  If you make changes to this function, please change also hip_add_sa()
  *
- * @param      src_addr outer globally routable source ip address
- * @param      dst_addr outer globally routable destination ip address
- * @param      inner_src_addr inner source address
- * @param      inner_dst_addr inner destination address
- * @param      spi ipsec spi for demultiplexing
- * @param      ealg crypto transform to be used for the SA
- * @param      enc_key raw encryption key
- * @param      auth_key raw authentication key
- * @param      retransmission notification if this event derives from a 
retransmission
- * @param      direction represents inbound or outbound direction
- * @param      update notification if this event derives from an update
- * @param      entry host association entry for this connection
- * @return     0, if correct, otherwise -1
+ * @param src_addr          outer globally routable source ip address
+ * @param dst_addr          outer globally routable destination ip address
+ * @param inner_src_addr    inner source address
+ * @param inner_dst_addr    inner destination address
+ * @param spi               ipsec spi for demultiplexing
+ * @param ealg              crypto transform to be used for the SA
+ * @param enc_key           raw encryption key
+ * @param auth_key          raw authentication key
+ * @param retransmission    notification if this event is due to retransmission
+ * @param direction         represents inbound or outbound direction
+ * @param update            notification if this event derives from an update
+ * @param entry             host association entry for this connection
+ * @return                  0, if correct, otherwise -1
  */
 uint32_t hip_userspace_ipsec_add_sa(const struct in6_addr *saddr,
                                     const struct in6_addr *daddr,
@@ -117,12 +117,12 @@
 
 /** deletes the specified SA entry from the sadb in userspace ipsec
  *
- * @param      spi ipsec spi for demultiplexing
- * @param      src_addr outer globally routable source ip address
- * @param      dst_addr outer globally routable destination ip address
- * @param      family protocol family of above addresses
- * @param      src_port local port for this host association
- * @param      dst_port peer port for this host association
+ * @param spi ipsec     spi for demultiplexing
+ * @param src_addr      outer globally routable source ip address
+ * @param dst_addr      outer globally routable destination ip address
+ * @param family        protocol family of above addresses
+ * @param src_port      local port for this host association
+ * @param dst_port      peer port for this host association
  */
 void hip_userspace_ipsec_delete_sa(const uint32_t spi,
                                    const struct in6_addr *not_used,
@@ -163,7 +163,7 @@
 
 /** flushes all SA entries in the sadb in userspace ipsec
  *
- * @return     0, if correct, else != 0
+ * @return      0, if correct, else != 0
  */
 
 int hip_userspace_ipsec_flush_all_sa(void)

Other related posts:

  • » [hipl-commit] [trunk] Rev 3664: fixed still existing TABs in hipd - Rene Hummen