Skip to content

Commit 70f7fcf

Browse files
author
Charles Maier on Appslinux01
committed
Correct endianess of FIELD_ETH_TYPE in coqos_add module.
1 parent c9adecf commit 70f7fcf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎CHANGES‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ open-plc-utils-0.0.3
99

1010
4. Replaced const HOMEPLUG_MTYPE with constant ETH_P_HPAV throughout.
1111

12+
5. Correct endianess of FIRLD_ETH_TYPE in module coqos_add.c.
13+
1214

1315
open-plc-utils-0.0.2
1416
---------------

‎plc/coqos_add.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ int main (int argc, char const * argv [])
365365
case FIELD_ETH_TYPE:
366366
word = (uint16_t *)(rule->CR_VALUE);
367367
*word = (uint16_t)(basespec (* argv++, 0, sizeof (* word)));
368-
*word = HTOLE16 (*word);
368+
*word = htons (*word);
369369
break;
370370
case FIELD_HPAV_MME:
371371
bytespec (* argv++, rule->CR_VALUE, sizeof (uint8_t) + sizeof (uint16_t));

0 commit comments

Comments
 (0)