aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/sctp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r--include/net/sctp/sctp.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index b2c2366676a..6a72a58cde5 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -120,6 +120,7 @@ extern int sctp_copy_local_addr_list(struct sctp_bind_addr *,
120 int flags); 120 int flags);
121extern struct sctp_pf *sctp_get_pf_specific(sa_family_t family); 121extern struct sctp_pf *sctp_get_pf_specific(sa_family_t family);
122extern int sctp_register_pf(struct sctp_pf *, sa_family_t); 122extern int sctp_register_pf(struct sctp_pf *, sa_family_t);
123extern void sctp_addr_wq_mgmt(struct sctp_sockaddr_entry *, int);
123 124
124/* 125/*
125 * sctp/socket.c 126 * sctp/socket.c
@@ -134,6 +135,7 @@ void sctp_sock_rfree(struct sk_buff *skb);
134void sctp_copy_sock(struct sock *newsk, struct sock *sk, 135void sctp_copy_sock(struct sock *newsk, struct sock *sk,
135 struct sctp_association *asoc); 136 struct sctp_association *asoc);
136extern struct percpu_counter sctp_sockets_allocated; 137extern struct percpu_counter sctp_sockets_allocated;
138extern int sctp_asconf_mgmt(struct sctp_sock *, struct sctp_sockaddr_entry *);
137 139
138/* 140/*
139 * sctp/primitive.c 141 * sctp/primitive.c
@@ -285,20 +287,21 @@ do { \
285 pr_cont(fmt, ##args); \ 287 pr_cont(fmt, ##args); \
286} while (0) 288} while (0)
287#define SCTP_DEBUG_PRINTK_IPADDR(fmt_lead, fmt_trail, \ 289#define SCTP_DEBUG_PRINTK_IPADDR(fmt_lead, fmt_trail, \
288 args_lead, saddr, args_trail...) \ 290 args_lead, addr, args_trail...) \
289do { \ 291do { \
292 const union sctp_addr *_addr = (addr); \
290 if (sctp_debug_flag) { \ 293 if (sctp_debug_flag) { \
291 if (saddr->sa.sa_family == AF_INET6) { \ 294 if (_addr->sa.sa_family == AF_INET6) { \
292 printk(KERN_DEBUG \ 295 printk(KERN_DEBUG \
293 pr_fmt(fmt_lead "%pI6" fmt_trail), \ 296 pr_fmt(fmt_lead "%pI6" fmt_trail), \
294 args_lead, \ 297 args_lead, \
295 &saddr->v6.sin6_addr, \ 298 &_addr->v6.sin6_addr, \
296 args_trail); \ 299 args_trail); \
297 } else { \ 300 } else { \
298 printk(KERN_DEBUG \ 301 printk(KERN_DEBUG \
299 pr_fmt(fmt_lead "%pI4" fmt_trail), \ 302 pr_fmt(fmt_lead "%pI4" fmt_trail), \
300 args_lead, \ 303 args_lead, \
301 &saddr->v4.sin_addr.s_addr, \ 304 &_addr->v4.sin_addr.s_addr, \
302 args_trail); \ 305 args_trail); \
303 } \ 306 } \
304 } \ 307 } \
@@ -598,7 +601,7 @@ static inline int ipver2af(__u8 ipver)
598 return AF_INET6; 601 return AF_INET6;
599 default: 602 default:
600 return 0; 603 return 0;
601 }; 604 }
602} 605}
603 606
604/* Convert from an address parameter type to an address family. */ 607/* Convert from an address parameter type to an address family. */
@@ -611,7 +614,7 @@ static inline int param_type2af(__be16 type)
611 return AF_INET6; 614 return AF_INET6;
612 default: 615 default:
613 return 0; 616 return 0;
614 }; 617 }
615} 618}
616 619
617/* Perform some sanity checks. */ 620/* Perform some sanity checks. */