summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-11-20 16:26:42 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-11-20 17:06:12 +0100
commit47310e444ec8f0119b30fd72f5046a5687c909f6 (patch)
treed2559623a94def2a43c6ca6a28b90e7c15e7bfdf /src/ipcpd
parent90517a16bc784b462aa7a65a1c721bb4b77444bc (diff)
downloadouroboros-47310e444ec8f0119b30fd72f5046a5687c909f6.tar.gz
ouroboros-47310e444ec8f0119b30fd72f5046a5687c909f6.zip
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 <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/dt.c10
1 files changed, 1 insertions, 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.");