diff options
author | dimitri staessens <[email protected]> | 2016-10-12 13:55:37 +0000 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-10-12 13:55:37 +0000 |
commit | 550e7892e47cf8daf351eb773ef3900b33ecabae (patch) | |
tree | c792e7674d1247fa95e096f746a3559e2f4f8b7e /src/ipcpd/normal/shm_pci.h | |
parent | b1dda618ce8cbb98f72c0b04925227889204e0c9 (diff) | |
parent | 43e2f332770007a3fcea011ffb35e8fbb24a6205 (diff) | |
download | ouroboros-550e7892e47cf8daf351eb773ef3900b33ecabae.tar.gz ouroboros-550e7892e47cf8daf351eb773ef3900b33ecabae.zip |
Merged in sandervrijders/ouroboros/be-connection (pull request #262)
ipcpd: normal: First version of the fast path bootstrap
Diffstat (limited to 'src/ipcpd/normal/shm_pci.h')
-rw-r--r-- | src/ipcpd/normal/shm_pci.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/ipcpd/normal/shm_pci.h b/src/ipcpd/normal/shm_pci.h index aa9770b4..2836737c 100644 --- a/src/ipcpd/normal/shm_pci.h +++ b/src/ipcpd/normal/shm_pci.h @@ -25,22 +25,34 @@ #define OUROBOROS_IPCP_SHM_PCI_H #include <ouroboros/shm_rdrbuff.h> +#include <ouroboros/utils.h> -#include <dt_const.h> +#include "dt_const.h" + +#define PDU_TYPE_MGMT 0x40 +#define PDU_TYPE_DTP 0x80 + +typedef uint32_t cep_id_t; +#define INVALID_CEP_ID 0 struct pci { + uint8_t pdu_type; uint64_t dst_addr; uint64_t src_addr; - uint32_t dst_cep_id; - uint32_t src_cep_id; + cep_id_t dst_cep_id; + cep_id_t src_cep_id; + uint8_t qos_id; uint32_t pdu_length; uint64_t seqno; - uint8_t qos_id; uint8_t ttl; + uint8_t flags; }; int shm_pci_ser(struct shm_du_buff * sdb, - struct pci * pci); + struct pci * pci); + +buffer_t * shm_pci_ser_buf(buffer_t * buf, + struct pci * pci); struct pci * shm_pci_des(struct shm_du_buff * sdb); |