summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-08 16:54:12 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-08 16:54:12 +0200
commit4e13c71204e9667cfc4b7da6491972f854d9402d (patch)
tree924156d142bce5521757e9349fa0b3fd2ff1b0cc /include
parent021af9e01ce6c6376534b33ef1a06ea4189028d4 (diff)
downloadouroboros-4e13c71204e9667cfc4b7da6491972f854d9402d.tar.gz
ouroboros-4e13c71204e9667cfc4b7da6491972f854d9402d.zip
lib: changed port_id to int
returning -1 as uint32_t leads to bugs. also changed types in GPB to sint to use zigzag encoding.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/ipcp.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/ouroboros/ipcp.h b/include/ouroboros/ipcp.h
index 570eca67..63e19e9d 100644
--- a/include/ouroboros/ipcp.h
+++ b/include/ouroboros/ipcp.h
@@ -49,27 +49,27 @@ int ipcp_enroll(pid_t pid,
char * member_name,
char * n_1_dif);
-int ipcp_bootstrap(pid_t pid,
+int ipcp_bootstrap(pid_t pid,
dif_config_msg_t * conf);
/* Flow related ops, these go from IRMd to IPCP */
-int ipcp_name_reg(pid_t pid,
- char * name);
-int ipcp_name_unreg(pid_t pid,
+int ipcp_name_reg(pid_t pid,
+ char * name);
+int ipcp_name_unreg(pid_t pid,
char * name);
int ipcp_flow_alloc(pid_t pid,
- uint32_t port_id,
+ int port_id,
pid_t n_pid,
char * dst_name,
char * src_ap_name,
char * src_ae_name,
struct qos_spec * qos);
-int ipcp_flow_alloc_resp(pid_t pid,
- uint32_t port_id,
- pid_t n_pid,
- int response);
+int ipcp_flow_alloc_resp(pid_t pid,
+ int port_id,
+ pid_t n_pid,
+ int response);
/* These operations go from the IPCP to the IRMd */
@@ -78,16 +78,16 @@ int ipcp_flow_req_arr(pid_t pid,
char * dst_name,
char * src_ap_name,
char * src_ae_name);
-int ipcp_flow_alloc_reply(pid_t pid,
- uint32_t port_id,
- int response);
+int ipcp_flow_alloc_reply(pid_t pid,
+ int port_id,
+ int response);
/*
* This operation can go both ways
* pid == 0 means the IRMd is the destination
*/
-int ipcp_flow_dealloc(pid_t pid,
- uint32_t port_id);
+int ipcp_flow_dealloc(pid_t pid,
+ int port_id);
#endif /* OUROBOROS_IPCP_H */