diff options
Diffstat (limited to 'include/net/sctp/structs.h')
| -rw-r--r-- | include/net/sctp/structs.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 5f69158c1006..e5aa7ff1f5b5 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
| @@ -445,6 +445,7 @@ typedef struct sctp_sender_hb_info { | |||
| 445 | struct sctp_paramhdr param_hdr; | 445 | struct sctp_paramhdr param_hdr; |
| 446 | union sctp_addr daddr; | 446 | union sctp_addr daddr; |
| 447 | unsigned long sent_at; | 447 | unsigned long sent_at; |
| 448 | __u64 hb_nonce; | ||
| 448 | } __attribute__((packed)) sctp_sender_hb_info_t; | 449 | } __attribute__((packed)) sctp_sender_hb_info_t; |
| 449 | 450 | ||
| 450 | /* | 451 | /* |
| @@ -730,13 +731,10 @@ void sctp_init_addrs(struct sctp_chunk *, union sctp_addr *, | |||
| 730 | const union sctp_addr *sctp_source(const struct sctp_chunk *chunk); | 731 | const union sctp_addr *sctp_source(const struct sctp_chunk *chunk); |
| 731 | 732 | ||
| 732 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ | 733 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ |
| 733 | /* sin_family -- AF_INET or AF_INET6 | ||
| 734 | * sin_port -- ordinary port number | ||
| 735 | * sin_addr -- cast to either (struct in_addr) or (struct in6_addr) | ||
| 736 | */ | ||
| 737 | struct sctp_sockaddr_entry { | 734 | struct sctp_sockaddr_entry { |
| 738 | struct list_head list; | 735 | struct list_head list; |
| 739 | union sctp_addr a; | 736 | union sctp_addr a; |
| 737 | __u8 use_as_src; | ||
| 740 | }; | 738 | }; |
| 741 | 739 | ||
| 742 | typedef struct sctp_chunk *(sctp_packet_phandler_t)(struct sctp_association *); | 740 | typedef struct sctp_chunk *(sctp_packet_phandler_t)(struct sctp_association *); |
| @@ -984,6 +982,9 @@ struct sctp_transport { | |||
| 984 | */ | 982 | */ |
| 985 | char cacc_saw_newack; | 983 | char cacc_saw_newack; |
| 986 | } cacc; | 984 | } cacc; |
| 985 | |||
| 986 | /* 64-bit random number sent with heartbeat. */ | ||
| 987 | __u64 hb_nonce; | ||
| 987 | }; | 988 | }; |
| 988 | 989 | ||
| 989 | struct sctp_transport *sctp_transport_new(const union sctp_addr *, | 990 | struct sctp_transport *sctp_transport_new(const union sctp_addr *, |
| @@ -1138,7 +1139,7 @@ int sctp_bind_addr_copy(struct sctp_bind_addr *dest, | |||
| 1138 | sctp_scope_t scope, gfp_t gfp, | 1139 | sctp_scope_t scope, gfp_t gfp, |
| 1139 | int flags); | 1140 | int flags); |
| 1140 | int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, | 1141 | int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, |
| 1141 | gfp_t gfp); | 1142 | __u8 use_as_src, gfp_t gfp); |
| 1142 | int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); | 1143 | int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); |
| 1143 | int sctp_bind_addr_match(struct sctp_bind_addr *, const union sctp_addr *, | 1144 | int sctp_bind_addr_match(struct sctp_bind_addr *, const union sctp_addr *, |
| 1144 | struct sctp_sock *); | 1145 | struct sctp_sock *); |
