diff options
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r-- | include/net/sctp/structs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index fa87873fee76..2528f8a837d9 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -760,12 +760,18 @@ void sctp_init_addrs(struct sctp_chunk *, union sctp_addr *, | |||
760 | union sctp_addr *); | 760 | union sctp_addr *); |
761 | const union sctp_addr *sctp_source(const struct sctp_chunk *chunk); | 761 | const union sctp_addr *sctp_source(const struct sctp_chunk *chunk); |
762 | 762 | ||
763 | enum { | ||
764 | SCTP_ADDR_NEW, /* new address added to assoc/ep */ | ||
765 | SCTP_ADDR_SRC, /* address can be used as source */ | ||
766 | SCTP_ADDR_DEL, /* address about to be deleted */ | ||
767 | }; | ||
768 | |||
763 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ | 769 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ |
764 | struct sctp_sockaddr_entry { | 770 | struct sctp_sockaddr_entry { |
765 | struct list_head list; | 771 | struct list_head list; |
766 | struct rcu_head rcu; | 772 | struct rcu_head rcu; |
767 | union sctp_addr a; | 773 | union sctp_addr a; |
768 | __u8 use_as_src; | 774 | __u8 state; |
769 | __u8 valid; | 775 | __u8 valid; |
770 | }; | 776 | }; |
771 | 777 | ||
@@ -1190,7 +1196,7 @@ int sctp_bind_addr_dup(struct sctp_bind_addr *dest, | |||
1190 | const struct sctp_bind_addr *src, | 1196 | const struct sctp_bind_addr *src, |
1191 | gfp_t gfp); | 1197 | gfp_t gfp); |
1192 | int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, | 1198 | int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, |
1193 | __u8 use_as_src, gfp_t gfp); | 1199 | __u8 addr_state, gfp_t gfp); |
1194 | int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); | 1200 | int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); |
1195 | int sctp_bind_addr_match(struct sctp_bind_addr *, const union sctp_addr *, | 1201 | int sctp_bind_addr_match(struct sctp_bind_addr *, const union sctp_addr *, |
1196 | struct sctp_sock *); | 1202 | struct sctp_sock *); |