From 47310e444ec8f0119b30fd72f5046a5687c909f6 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 20 Nov 2018 16:26:42 +0100 Subject: ipcpd: Fix uninitialized value for ECN The ECN value in the packet was not set during write of a new packet. Also removes the outdated abstract syntax enum. Signed-off-by: Sander Vrijders Signed-off-by: Dimitri Staessens --- src/ipcpd/normal/dt.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c index 0958c0eb..734115c5 100644 --- a/src/ipcpd/normal/dt.c +++ b/src/ipcpd/normal/dt.c @@ -70,15 +70,6 @@ struct comp_info { char * name; }; -/* Abstract syntax */ -enum dtp_fields { - DTP_DST = 0, /* DST ADDRESS */ - DTP_QOS, /* QOS ID */ - DTP_DEID, /* DST Endpoint ID */ - DTP_TTL, /* TTL FIELD */ - DTP_NUM_FIELDS /* Number of fields */ -}; - /* Fixed field lengths */ #define TTL_LEN 1 #define QOS_LEN 1 @@ -860,6 +851,7 @@ int dt_write_packet(uint64_t dst_addr, dt_pci.dst_addr = dst_addr; dt_pci.qc = qc; dt_pci.eid = np1_fd; + dt_pci.ecn = 0; if (dt_pci_ser(sdb, &dt_pci)) { log_dbg("Failed to serialize PDU."); -- cgit v1.2.3