projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up exported headers on CRIS
[powerpc.git]
/
net
/
sctp
/
bind_addr.c
diff --git
a/net/sctp/bind_addr.c
b/net/sctp/bind_addr.c
index
f715497
..
2b9c12a
100644
(file)
--- a/
net/sctp/bind_addr.c
+++ b/
net/sctp/bind_addr.c
@@
-53,7
+53,7
@@
/* Forward declarations for internal helpers. */
static int sctp_copy_one_addr(struct sctp_bind_addr *, union sctp_addr *,
/* Forward declarations for internal helpers. */
static int sctp_copy_one_addr(struct sctp_bind_addr *, union sctp_addr *,
- sctp_scope_t scope,
unsigned int __nocas
t gfp,
+ sctp_scope_t scope,
gfp_
t gfp,
int flags);
static void sctp_bind_addr_clean(struct sctp_bind_addr *);
int flags);
static void sctp_bind_addr_clean(struct sctp_bind_addr *);
@@
-64,7
+64,7
@@
static void sctp_bind_addr_clean(struct sctp_bind_addr *);
*/
int sctp_bind_addr_copy(struct sctp_bind_addr *dest,
const struct sctp_bind_addr *src,
*/
int sctp_bind_addr_copy(struct sctp_bind_addr *dest,
const struct sctp_bind_addr *src,
- sctp_scope_t scope,
unsigned int __nocas
t gfp,
+ sctp_scope_t scope,
gfp_
t gfp,
int flags)
{
struct sctp_sockaddr_entry *addr;
int flags)
{
struct sctp_sockaddr_entry *addr;
@@
-146,7
+146,7
@@
void sctp_bind_addr_free(struct sctp_bind_addr *bp)
/* Add an address to the bind address list in the SCTP_bind_addr structure. */
int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
/* Add an address to the bind address list in the SCTP_bind_addr structure. */
int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
-
unsigned int __nocas
t gfp)
+
__u8 use_as_src, gfp_
t gfp)
{
struct sctp_sockaddr_entry *addr;
{
struct sctp_sockaddr_entry *addr;
@@
-163,6
+163,8
@@
int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
if (!addr->a.v4.sin_port)
addr->a.v4.sin_port = bp->port;
if (!addr->a.v4.sin_port)
addr->a.v4.sin_port = bp->port;
+ addr->use_as_src = use_as_src;
+
INIT_LIST_HEAD(&addr->list);
list_add_tail(&addr->list, &bp->address_list);
SCTP_DBG_OBJCNT_INC(addr);
INIT_LIST_HEAD(&addr->list);
list_add_tail(&addr->list, &bp->address_list);
SCTP_DBG_OBJCNT_INC(addr);
@@
-200,7
+202,7
@@
int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr)
*/
union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp,
int *addrs_len,
*/
union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp,
int *addrs_len,
-
unsigned int __nocas
t gfp)
+
gfp_
t gfp)
{
union sctp_params addrparms;
union sctp_params retval;
{
union sctp_params addrparms;
union sctp_params retval;
@@
-252,7
+254,7
@@
end_raw:
* address parameters).
*/
int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list,
* address parameters).
*/
int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list,
- int addrs_len, __u16 port,
unsigned int __nocas
t gfp)
+ int addrs_len, __u16 port,
gfp_
t gfp)
{
union sctp_addr_param *rawaddr;
struct sctp_paramhdr *param;
{
union sctp_addr_param *rawaddr;
struct sctp_paramhdr *param;
@@
-274,7
+276,7
@@
int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list,
}
af->from_addr_param(&addr, rawaddr, port, 0);
}
af->from_addr_param(&addr, rawaddr, port, 0);
- retval = sctp_add_bind_addr(bp, &addr, gfp);
+ retval = sctp_add_bind_addr(bp, &addr,
1,
gfp);
if (retval) {
/* Can't finish building the list, clean up. */
sctp_bind_addr_clean(bp);
if (retval) {
/* Can't finish building the list, clean up. */
sctp_bind_addr_clean(bp);
@@
-350,7
+352,7
@@
union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp,
/* Copy out addresses from the global local address list. */
static int sctp_copy_one_addr(struct sctp_bind_addr *dest,
union sctp_addr *addr,
/* Copy out addresses from the global local address list. */
static int sctp_copy_one_addr(struct sctp_bind_addr *dest,
union sctp_addr *addr,
- sctp_scope_t scope,
unsigned int __nocas
t gfp,
+ sctp_scope_t scope,
gfp_
t gfp,
int flags)
{
int error = 0;
int flags)
{
int error = 0;
@@
-367,7
+369,7
@@
static int sctp_copy_one_addr(struct sctp_bind_addr *dest,
(((AF_INET6 == addr->sa.sa_family) &&
(flags & SCTP_ADDR6_ALLOWED) &&
(flags & SCTP_ADDR6_PEERSUPP))))
(((AF_INET6 == addr->sa.sa_family) &&
(flags & SCTP_ADDR6_ALLOWED) &&
(flags & SCTP_ADDR6_PEERSUPP))))
- error = sctp_add_bind_addr(dest, addr, gfp);
+ error = sctp_add_bind_addr(dest, addr,
1,
gfp);
}
return error;
}
return error;