Commit f1079649 authored by Sridhar Samudrala's avatar Sridhar Samudrala

[SCTP] draft07 API changes: sctp_bindx() now takes a packed array of

sockaddr_in/sockaddr_in6 structures instead of an array of
sockaddr_storage structures.
parent b5c67280
......@@ -406,6 +406,12 @@ static inline struct list_head *sctp_list_dequeue(struct list_head *list)
return result;
}
/* Tests if the list has one and only one entry. */
static inline int sctp_list_single_entry(struct list_head *head)
{
return ((head->next != head) && (head->next == head->prev));
}
/* Calculate the size (in bytes) occupied by the data of an iovec. */
static inline size_t get_user_iov_size(struct iovec *iov, int iovlen)
{
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment