diff options
author | dimitri staessens <[email protected]> | 2017-05-15 10:11:25 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-05-15 10:11:25 +0000 |
commit | 0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4 (patch) | |
tree | ea16469c2d8fbcb417ed89e0bbd550834d0602a6 /src/ipcpd/normal/dt_pci.h | |
parent | b36acfd93b1dc16a153ca9b9077d113732accb4e (diff) | |
parent | 9903b8a2f9a7dc8ebac6928dcf2d2b5593ea0615 (diff) | |
download | ouroboros-0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4.tar.gz ouroboros-0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4.zip |
Merged in dstaesse/ouroboros/be-syntax-dev (pull request #505)
ipcpd: Allow specifying fixed syntax
Diffstat (limited to 'src/ipcpd/normal/dt_pci.h')
-rw-r--r-- | src/ipcpd/normal/dt_pci.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ipcpd/normal/dt_pci.h b/src/ipcpd/normal/dt_pci.h index 280956f4..13f782a4 100644 --- a/src/ipcpd/normal/dt_pci.h +++ b/src/ipcpd/normal/dt_pci.h @@ -24,8 +24,31 @@ #define OUROBOROS_IPCPD_NORMAL_DT_PCI_H #include <ouroboros/shm_du_buff.h> +#include <ouroboros/proto.h> #include <ouroboros/shared.h> +#include <stdint.h> +#include <stdbool.h> + +#define DT_PROTO "dt" +#define FD_FA 1 +#define FD_DHT 2 + +/* Abstract syntax */ +enum dtp_fields { + DTP_DST = 0, /* DST ADDRESS */ + DTP_QOS, /* QOS ID */ + DTP_DFD, /* DEST FD */ + DTP_TTL, /* TTL FIELD */ + DTP_NUM_FIELDS /* number of fields */ +}; + +/* Default field lengths */ +#define TTL_LEN 1 +#define QOS_LEN 1 +#define DFD_LEN 1 +#define DST_LEN 2 + struct dt_pci { uint64_t dst_addr; qoscube_t qc; |