diff options
author | David Howells <dhowells@redhat.com> | 2006-12-05 09:37:56 -0500 |
---|---|---|
committer | David Howells <dhowells@warthog.cambridge.redhat.com> | 2006-12-05 09:37:56 -0500 |
commit | 4c1ac1b49122b805adfa4efc620592f68dccf5db (patch) | |
tree | 87557f4bc2fd4fe65b7570489c2f610c45c0adcd /include/net/sctp | |
parent | c4028958b6ecad064b1a6303a6a5906d4fe48d73 (diff) | |
parent | d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/infiniband/core/iwcm.c
drivers/net/chelsio/cxgb2.c
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/net/wireless/prism54/islpci_eth.c
drivers/usb/core/hub.h
drivers/usb/input/hid-core.c
net/core/netpoll.c
Fix up merge failures with Linus's head and fix new compilation failures.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/command.h | 4 | ||||
-rw-r--r-- | include/net/sctp/constants.h | 2 | ||||
-rw-r--r-- | include/net/sctp/sctp.h | 2 | ||||
-rw-r--r-- | include/net/sctp/sm.h | 6 | ||||
-rw-r--r-- | include/net/sctp/structs.h | 21 | ||||
-rw-r--r-- | include/net/sctp/tsnmap.h | 4 |
6 files changed, 25 insertions, 14 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h index 807d6f1ef4b5..6114c4f54b0a 100644 --- a/include/net/sctp/command.h +++ b/include/net/sctp/command.h | |||
@@ -116,9 +116,11 @@ typedef enum { | |||
116 | typedef union { | 116 | typedef union { |
117 | __s32 i32; | 117 | __s32 i32; |
118 | __u32 u32; | 118 | __u32 u32; |
119 | __be32 be32; | ||
119 | __u16 u16; | 120 | __u16 u16; |
120 | __u8 u8; | 121 | __u8 u8; |
121 | int error; | 122 | int error; |
123 | __be16 err; | ||
122 | sctp_state_t state; | 124 | sctp_state_t state; |
123 | sctp_event_timeout_t to; | 125 | sctp_event_timeout_t to; |
124 | unsigned long zero; | 126 | unsigned long zero; |
@@ -164,9 +166,11 @@ SCTP_## name (type arg) \ | |||
164 | 166 | ||
165 | SCTP_ARG_CONSTRUCTOR(I32, __s32, i32) | 167 | SCTP_ARG_CONSTRUCTOR(I32, __s32, i32) |
166 | SCTP_ARG_CONSTRUCTOR(U32, __u32, u32) | 168 | SCTP_ARG_CONSTRUCTOR(U32, __u32, u32) |
169 | SCTP_ARG_CONSTRUCTOR(BE32, __be32, be32) | ||
167 | SCTP_ARG_CONSTRUCTOR(U16, __u16, u16) | 170 | SCTP_ARG_CONSTRUCTOR(U16, __u16, u16) |
168 | SCTP_ARG_CONSTRUCTOR(U8, __u8, u8) | 171 | SCTP_ARG_CONSTRUCTOR(U8, __u8, u8) |
169 | SCTP_ARG_CONSTRUCTOR(ERROR, int, error) | 172 | SCTP_ARG_CONSTRUCTOR(ERROR, int, error) |
173 | SCTP_ARG_CONSTRUCTOR(PERR, __be16, err) /* protocol error */ | ||
170 | SCTP_ARG_CONSTRUCTOR(STATE, sctp_state_t, state) | 174 | SCTP_ARG_CONSTRUCTOR(STATE, sctp_state_t, state) |
171 | SCTP_ARG_CONSTRUCTOR(TO, sctp_event_timeout_t, to) | 175 | SCTP_ARG_CONSTRUCTOR(TO, sctp_event_timeout_t, to) |
172 | SCTP_ARG_CONSTRUCTOR(PTR, void *, ptr) | 176 | SCTP_ARG_CONSTRUCTOR(PTR, void *, ptr) |
diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h index 6c632e26f72d..5ddb85599863 100644 --- a/include/net/sctp/constants.h +++ b/include/net/sctp/constants.h | |||
@@ -356,7 +356,7 @@ typedef enum { | |||
356 | * addresses. | 356 | * addresses. |
357 | */ | 357 | */ |
358 | #define IS_IPV4_UNUSABLE_ADDRESS(a) \ | 358 | #define IS_IPV4_UNUSABLE_ADDRESS(a) \ |
359 | ((INADDR_BROADCAST == *a) || \ | 359 | ((htonl(INADDR_BROADCAST) == *a) || \ |
360 | (MULTICAST(*a)) || \ | 360 | (MULTICAST(*a)) || \ |
361 | (((unsigned char *)(a))[0] == 0) || \ | 361 | (((unsigned char *)(a))[0] == 0) || \ |
362 | ((((unsigned char *)(a))[0] == 198) && \ | 362 | ((((unsigned char *)(a))[0] == 198) && \ |
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 764e3af5be93..215461f18db1 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -585,7 +585,7 @@ static inline int ipver2af(__u8 ipver) | |||
585 | } | 585 | } |
586 | 586 | ||
587 | /* Convert from an address parameter type to an address family. */ | 587 | /* Convert from an address parameter type to an address family. */ |
588 | static inline int param_type2af(__u16 type) | 588 | static inline int param_type2af(__be16 type) |
589 | { | 589 | { |
590 | switch (type) { | 590 | switch (type) { |
591 | case SCTP_PARAM_IPV4_ADDRESS: | 591 | case SCTP_PARAM_IPV4_ADDRESS: |
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index de313de4fefe..3269ed1cc222 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
@@ -213,7 +213,7 @@ struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc, | |||
213 | const struct sctp_chunk *); | 213 | const struct sctp_chunk *); |
214 | struct sctp_chunk *sctp_make_shutdown_complete(const struct sctp_association *, | 214 | struct sctp_chunk *sctp_make_shutdown_complete(const struct sctp_association *, |
215 | const struct sctp_chunk *); | 215 | const struct sctp_chunk *); |
216 | void sctp_init_cause(struct sctp_chunk *, __u16 cause, const void *, size_t); | 216 | void sctp_init_cause(struct sctp_chunk *, __be16 cause, const void *, size_t); |
217 | struct sctp_chunk *sctp_make_abort(const struct sctp_association *, | 217 | struct sctp_chunk *sctp_make_abort(const struct sctp_association *, |
218 | const struct sctp_chunk *, | 218 | const struct sctp_chunk *, |
219 | const size_t hint); | 219 | const size_t hint); |
@@ -236,14 +236,14 @@ struct sctp_chunk *sctp_make_heartbeat_ack(const struct sctp_association *, | |||
236 | const size_t paylen); | 236 | const size_t paylen); |
237 | struct sctp_chunk *sctp_make_op_error(const struct sctp_association *, | 237 | struct sctp_chunk *sctp_make_op_error(const struct sctp_association *, |
238 | const struct sctp_chunk *chunk, | 238 | const struct sctp_chunk *chunk, |
239 | __u16 cause_code, | 239 | __be16 cause_code, |
240 | const void *payload, | 240 | const void *payload, |
241 | size_t paylen); | 241 | size_t paylen); |
242 | 242 | ||
243 | struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *, | 243 | struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *, |
244 | union sctp_addr *, | 244 | union sctp_addr *, |
245 | struct sockaddr *, | 245 | struct sockaddr *, |
246 | int, __u16); | 246 | int, __be16); |
247 | struct sctp_chunk *sctp_make_asconf_set_prim(struct sctp_association *asoc, | 247 | struct sctp_chunk *sctp_make_asconf_set_prim(struct sctp_association *asoc, |
248 | union sctp_addr *addr); | 248 | union sctp_addr *addr); |
249 | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, | 249 | struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc, |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 60b684470db8..c089f93ba591 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -537,7 +537,7 @@ struct sctp_af { | |||
537 | struct net_device *); | 537 | struct net_device *); |
538 | void (*dst_saddr) (union sctp_addr *saddr, | 538 | void (*dst_saddr) (union sctp_addr *saddr, |
539 | struct dst_entry *dst, | 539 | struct dst_entry *dst, |
540 | unsigned short port); | 540 | __be16 port); |
541 | int (*cmp_addr) (const union sctp_addr *addr1, | 541 | int (*cmp_addr) (const union sctp_addr *addr1, |
542 | const union sctp_addr *addr2); | 542 | const union sctp_addr *addr2); |
543 | void (*addr_copy) (union sctp_addr *dst, | 543 | void (*addr_copy) (union sctp_addr *dst, |
@@ -553,14 +553,14 @@ struct sctp_af { | |||
553 | struct sock *sk); | 553 | struct sock *sk); |
554 | void (*from_addr_param) (union sctp_addr *, | 554 | void (*from_addr_param) (union sctp_addr *, |
555 | union sctp_addr_param *, | 555 | union sctp_addr_param *, |
556 | __u16 port, int iif); | 556 | __be16 port, int iif); |
557 | int (*to_addr_param) (const union sctp_addr *, | 557 | int (*to_addr_param) (const union sctp_addr *, |
558 | union sctp_addr_param *); | 558 | union sctp_addr_param *); |
559 | int (*addr_valid) (union sctp_addr *, | 559 | int (*addr_valid) (union sctp_addr *, |
560 | struct sctp_sock *, | 560 | struct sctp_sock *, |
561 | const struct sk_buff *); | 561 | const struct sk_buff *); |
562 | sctp_scope_t (*scope) (union sctp_addr *); | 562 | sctp_scope_t (*scope) (union sctp_addr *); |
563 | void (*inaddr_any) (union sctp_addr *, unsigned short); | 563 | void (*inaddr_any) (union sctp_addr *, __be16); |
564 | int (*is_any) (const union sctp_addr *); | 564 | int (*is_any) (const union sctp_addr *); |
565 | int (*available) (union sctp_addr *, | 565 | int (*available) (union sctp_addr *, |
566 | struct sctp_sock *); | 566 | struct sctp_sock *); |
@@ -587,7 +587,7 @@ struct sctp_pf { | |||
587 | struct sctp_sock *); | 587 | struct sctp_sock *); |
588 | int (*bind_verify) (struct sctp_sock *, union sctp_addr *); | 588 | int (*bind_verify) (struct sctp_sock *, union sctp_addr *); |
589 | int (*send_verify) (struct sctp_sock *, union sctp_addr *); | 589 | int (*send_verify) (struct sctp_sock *, union sctp_addr *); |
590 | int (*supported_addrs)(const struct sctp_sock *, __u16 *); | 590 | int (*supported_addrs)(const struct sctp_sock *, __be16 *); |
591 | struct sock *(*create_accept_sk) (struct sock *sk, | 591 | struct sock *(*create_accept_sk) (struct sock *sk, |
592 | struct sctp_association *asoc); | 592 | struct sctp_association *asoc); |
593 | void (*addr_v4map) (struct sctp_sock *, union sctp_addr *); | 593 | void (*addr_v4map) (struct sctp_sock *, union sctp_addr *); |
@@ -1270,7 +1270,7 @@ struct sctp_endpoint { | |||
1270 | * this here so we pre-allocate this once and can re-use | 1270 | * this here so we pre-allocate this once and can re-use |
1271 | * on every receive. | 1271 | * on every receive. |
1272 | */ | 1272 | */ |
1273 | __u8 digest[SCTP_SIGNATURE_SIZE]; | 1273 | __u8 *digest; |
1274 | 1274 | ||
1275 | /* sendbuf acct. policy. */ | 1275 | /* sendbuf acct. policy. */ |
1276 | __u32 sndbuf_policy; | 1276 | __u32 sndbuf_policy; |
@@ -1314,6 +1314,13 @@ int sctp_process_init(struct sctp_association *, sctp_cid_t cid, | |||
1314 | __u32 sctp_generate_tag(const struct sctp_endpoint *); | 1314 | __u32 sctp_generate_tag(const struct sctp_endpoint *); |
1315 | __u32 sctp_generate_tsn(const struct sctp_endpoint *); | 1315 | __u32 sctp_generate_tsn(const struct sctp_endpoint *); |
1316 | 1316 | ||
1317 | struct sctp_inithdr_host { | ||
1318 | __u32 init_tag; | ||
1319 | __u32 a_rwnd; | ||
1320 | __u16 num_outbound_streams; | ||
1321 | __u16 num_inbound_streams; | ||
1322 | __u32 initial_tsn; | ||
1323 | }; | ||
1317 | 1324 | ||
1318 | /* RFC2960 | 1325 | /* RFC2960 |
1319 | * | 1326 | * |
@@ -1482,9 +1489,9 @@ struct sctp_association { | |||
1482 | /* This mask is used to disable sending the ASCONF chunk | 1489 | /* This mask is used to disable sending the ASCONF chunk |
1483 | * with specified parameter to peer. | 1490 | * with specified parameter to peer. |
1484 | */ | 1491 | */ |
1485 | __u16 addip_disabled_mask; | 1492 | __be16 addip_disabled_mask; |
1486 | 1493 | ||
1487 | struct sctp_inithdr i; | 1494 | struct sctp_inithdr_host i; |
1488 | int cookie_len; | 1495 | int cookie_len; |
1489 | void *cookie; | 1496 | void *cookie; |
1490 | 1497 | ||
diff --git a/include/net/sctp/tsnmap.h b/include/net/sctp/tsnmap.h index 021947da70ea..70a824df6f60 100644 --- a/include/net/sctp/tsnmap.h +++ b/include/net/sctp/tsnmap.h | |||
@@ -105,7 +105,7 @@ struct sctp_tsnmap { | |||
105 | * every SACK. Store up to SCTP_MAX_DUP_TSNS worth of | 105 | * every SACK. Store up to SCTP_MAX_DUP_TSNS worth of |
106 | * information. | 106 | * information. |
107 | */ | 107 | */ |
108 | __u32 dup_tsns[SCTP_MAX_DUP_TSNS]; | 108 | __be32 dup_tsns[SCTP_MAX_DUP_TSNS]; |
109 | __u16 num_dup_tsns; | 109 | __u16 num_dup_tsns; |
110 | 110 | ||
111 | /* Record gap ack block information here. */ | 111 | /* Record gap ack block information here. */ |
@@ -162,7 +162,7 @@ static inline __u16 sctp_tsnmap_num_dups(struct sctp_tsnmap *map) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | /* Return pointer to duplicate tsn array as needed by SACK. */ | 164 | /* Return pointer to duplicate tsn array as needed by SACK. */ |
165 | static inline __u32 *sctp_tsnmap_get_dups(struct sctp_tsnmap *map) | 165 | static inline __be32 *sctp_tsnmap_get_dups(struct sctp_tsnmap *map) |
166 | { | 166 | { |
167 | map->num_dup_tsns = 0; | 167 | map->num_dup_tsns = 0; |
168 | return map->dup_tsns; | 168 | return map->dup_tsns; |