diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-09-07 15:00:12 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-09-07 15:00:12 +0200 |
commit | ab83ed430081d2833faa31b7f1cf187b043e56be (patch) | |
tree | bc432f673bb453b8fc7789cff363b9b49e8fbaf5 /src/ipcpd/normal/shm_pci.h | |
parent | dd1047b0e457c45d45a1b5b83972d4a75968cce2 (diff) | |
parent | 2cf4f88fc8b957c15ae93a2eb3e56ebdb07a0381 (diff) | |
download | ouroboros-ab83ed430081d2833faa31b7f1cf187b043e56be.tar.gz ouroboros-ab83ed430081d2833faa31b7f1cf187b043e56be.zip |
Merged in sandervrijders/ouroboros/be-shm-pci (pull request #247)
ipcpd: normal: Add operations to get and set the PCI
Diffstat (limited to 'src/ipcpd/normal/shm_pci.h')
-rw-r--r-- | src/ipcpd/normal/shm_pci.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/ipcpd/normal/shm_pci.h b/src/ipcpd/normal/shm_pci.h index cb8dd5dd..aa9770b4 100644 --- a/src/ipcpd/normal/shm_pci.h +++ b/src/ipcpd/normal/shm_pci.h @@ -24,20 +24,28 @@ #ifndef OUROBOROS_IPCP_SHM_PCI_H #define OUROBOROS_IPCP_SHM_PCI_H -#include <ouroboros/shm_du_map.h> +#include <ouroboros/shm_rdrbuff.h> #include <dt_const.h> -struct shm_pci; +struct pci { + uint64_t dst_addr; + uint64_t src_addr; + uint32_t dst_cep_id; + uint32_t src_cep_id; + uint32_t pdu_length; + uint64_t seqno; + uint8_t qos_id; + uint8_t ttl; +}; -typedef struct shm_pci shm_pci_t; +int shm_pci_ser(struct shm_du_buff * sdb, + struct pci * pci); -shm_pci_t * shm_pci_create(struct shm_du_buff * dub, - const struct ipcp_dtp_const * dtpc, - const struct ipcp_dup_const * dupc); -void shm_pci_destroy(shm_pci_t * pci); +struct pci * shm_pci_des(struct shm_du_buff * sdb); -int shm_pci_init(shm_pci_t * pci); -void shm_pci_release(shm_pci_t * pci); +int shm_pci_shrink(struct shm_du_buff * sdb); + +int shm_pci_dec_ttl(struct shm_du_buff * sdb); #endif /* OUROBOROS_IPCP_SHM_PCI_H */ |