Skip to content
  • Dr. Wolf-Bastian Pöttner's avatar
    Hash: Interface change to allow 6 information that uniquely identify a bundle... · d7b0f680
    Dr. Wolf-Bastian Pöttner authored
    Hash: Interface change to allow 6 information that uniquely identify a bundle to be passed as argument
    
    Upon close inspection of RFC5050 and RFC4838, the old version of the code had the problem that only
    the host part of the EID has been used instead of using the full EID. This patch allows to specify
    6 arguments including the service part. In particular, the following arguments should be passed to
    allow unique bundle identification:
     * Creation Timestamp sequence number
     * Creation Timestamp time
     * Source EID Host
     * Source EID Application
     * Fragment Offset (0 for non-fragments)
     * Payload length (0 for non-fragments)
    (see http://tools.ietf.org/html/rfc5050#page-21)
    
    This patch further fixes a bug in which only the first 16 bytes were used for hash calculation.
    d7b0f680