Changeset a86d10e


Ignore:
Timestamp:
02/05/19 12:46:27 (20 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
4d253ae
Parents:
6f6fcbb
Message:

byte ordering is handling by the format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pktmeta.c

    r254c926 ra86d10e  
    484484        }
    485485
    486         /* Flip from network to host byte ordering */
    487         if (r != NULL) {
    488                 int i;
    489                 for (i=0; i<r->num; i++) {
    490                         uint32_t d = ntohl(*(uint32_t *)r->items[i].data);
    491                         memcpy(r->items[i].data, &d, r->items[i].len);
    492                 }
    493         }
    494 
    495486        return r;
    496487}
Note: See TracChangeset for help on using the changeset viewer.