Changeset 0cc91ee for lib/format_erf.c


Ignore:
Timestamp:
01/29/19 09:59:10 (21 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
4e9be84, b32e8f4
Parents:
0af3a4e
Message:

Meta-API - Keep ip4 address in network byte order, Cleanup bits and pieces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r0af3a4e r0cc91ee  
    10861086        uint16_t curr_sec = 0;
    10871087
     1088        if (packet == NULL) {
     1089                fprintf(stderr, "NULL packet passed into erf_get_meta_section()\n");
     1090                return NULL;
     1091        }
    10881092        if (packet->buffer == NULL) { return NULL; }
    10891093
     
    11501154                                /* depending on the datatype we need to ensure the data is
    11511155                                 * in host byte ordering */
    1152                                 if (result->items[result->num-1].datatype == TRACE_META_UINT32
    1153                                         || result->items[result->num-1].datatype == TRACE_META_IPV4) {
     1156                                if (result->items[result->num-1].datatype == TRACE_META_UINT32) {
    11541157                                        uint32_t t = *(uint32_t *)(ptr+sizeof(struct dag_opthdr));
    11551158                                        t = ntohl(t);
Note: See TracChangeset for help on using the changeset viewer.