struct gb_svc_conn_create_request {
__u8 intf1_id;
- __u16 cport1_id;
+ __le16 cport1_id;
__u8 intf2_id;
- __u16 cport2_id;
+ __le16 cport2_id;
__u8 tc;
__u8 flags;
} __packed;
struct gb_svc_conn_destroy_request {
__u8 intf1_id;
- __u16 cport1_id;
+ __le16 cport1_id;
__u8 intf2_id;
- __u16 cport2_id;
+ __le16 cport2_id;
} __packed;
/* connection destroy response has no payload */
struct gb_svc_dme_peer_get_request {
__u8 intf_id;
- __u16 attr;
- __u16 selector;
+ __le16 attr;
+ __le16 selector;
} __packed;
struct gb_svc_dme_peer_get_response {
- __u16 result_code;
- __u32 attr_value;
+ __le16 result_code;
+ __le32 attr_value;
} __packed;
struct gb_svc_dme_peer_set_request {
__u8 intf_id;
- __u16 attr;
- __u16 selector;
- __u32 value;
+ __le16 attr;
+ __le16 selector;
+ __le32 value;
} __packed;
struct gb_svc_dme_peer_set_response {
- __u16 result_code;
+ __le16 result_code;
} __packed;
struct gb_svc_route_create_request {
struct gb_svc_conn_create_request request;
request.intf1_id = intf1_id;
- request.cport1_id = cport1_id;
+ request.cport1_id = cpu_to_le16(cport1_id);
request.intf2_id = intf2_id;
- request.cport2_id = cport2_id;
+ request.cport2_id = cpu_to_le16(cport2_id);
/*
* XXX: fix connections paramaters to TC0 and all CPort flags
* for now.
int ret;
request.intf1_id = intf1_id;
- request.cport1_id = cport1_id;
+ request.cport1_id = cpu_to_le16(cport1_id);
request.intf2_id = intf2_id;
- request.cport2_id = cport2_id;
+ request.cport2_id = cpu_to_le16(cport2_id);
ret = gb_operation_sync(connection, GB_SVC_TYPE_CONN_DESTROY,
&request, sizeof(request), NULL, 0);