summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp-ops.h
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 /src/ipcpd/ipcp-ops.h
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 'src/ipcpd/ipcp-ops.h')
-rw-r--r--src/ipcpd/ipcp-ops.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ipcpd/ipcp-ops.h b/src/ipcpd/ipcp-ops.h
index 91b6cac9..5e90939d 100644
--- a/src/ipcpd/ipcp-ops.h
+++ b/src/ipcpd/ipcp-ops.h
@@ -33,21 +33,21 @@ struct ipcp_ops {
int (* ipcp_enroll)(char * member_name,
char * n_1_dif);
int (* ipcp_reg)(char ** dif_names,
- size_t len);
+ size_t len);
int (* ipcp_unreg)(char ** dif_names,
- size_t len);
+ size_t len);
int (* ipcp_name_reg)(char * name);
int (* ipcp_name_unreg)(char * name);
- int (* ipcp_flow_alloc)(uint32_t port_id,
- pid_t n_pid,
- char * dst_ap_name,
- char * src_ap_name,
- char * src_ae_name,
+ int (* ipcp_flow_alloc)(int port_id,
+ pid_t n_pid,
+ char * dst_ap_name,
+ char * src_ap_name,
+ char * src_ae_name,
struct qos_spec * qos);
- int (* ipcp_flow_alloc_resp)(uint32_t port_id,
- pid_t n_pid,
- int response);
- int (* ipcp_flow_dealloc)(uint32_t port_id);
+ int (* ipcp_flow_alloc_resp)(int port_id,
+ pid_t n_pid,
+ int response);
+ int (* ipcp_flow_dealloc)(int port_id);
};
#endif /* IPCPD_IPCP_OPS_H */