Commit 33585c7e authored by Sridhar Samudrala's avatar Sridhar Samudrala

[SCTP] Update API names to be compatible with draft-ietf-tsvwg-sctpsocket-07.txt.

parent 78398488
This diff is collapsed.
...@@ -556,12 +556,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc, ...@@ -556,12 +556,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
switch (command) { switch (command) {
case SCTP_TRANSPORT_UP: case SCTP_TRANSPORT_UP:
transport->active = SCTP_ACTIVE; transport->active = SCTP_ACTIVE;
spc_state = ADDRESS_AVAILABLE; spc_state = SCTP_ADDR_REACHABLE;
break; break;
case SCTP_TRANSPORT_DOWN: case SCTP_TRANSPORT_DOWN:
transport->active = SCTP_INACTIVE; transport->active = SCTP_INACTIVE;
spc_state = ADDRESS_UNREACHABLE; spc_state = SCTP_ADDR_UNREACHABLE;
break; break;
default: default:
......
This diff is collapsed.
...@@ -727,7 +727,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi( ...@@ -727,7 +727,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
const struct sctp_association *asoc, __u32 indication, int gfp) const struct sctp_association *asoc, __u32 indication, int gfp)
{ {
struct sctp_ulpevent *event; struct sctp_ulpevent *event;
struct sctp_rcv_pdapi_event *pd; struct sctp_pdapi_event *pd;
struct sk_buff *skb; struct sk_buff *skb;
event = sctp_ulpevent_new(sizeof(struct sctp_assoc_change), event = sctp_ulpevent_new(sizeof(struct sctp_assoc_change),
...@@ -736,8 +736,8 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi( ...@@ -736,8 +736,8 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
goto fail; goto fail;
skb = sctp_event2skb(event); skb = sctp_event2skb(event);
pd = (struct sctp_rcv_pdapi_event *) pd = (struct sctp_pdapi_event *)
skb_put(skb, sizeof(struct sctp_rcv_pdapi_event)); skb_put(skb, sizeof(struct sctp_pdapi_event));
/* pdapi_type /* pdapi_type
* It should be SCTP_PARTIAL_DELIVERY_EVENT * It should be SCTP_PARTIAL_DELIVERY_EVENT
...@@ -752,9 +752,9 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi( ...@@ -752,9 +752,9 @@ struct sctp_ulpevent *sctp_ulpevent_make_pdapi(
* *
* This field is the total length of the notification data, including * This field is the total length of the notification data, including
* the notification header. It will generally be sizeof (struct * the notification header. It will generally be sizeof (struct
* sctp_rcv_pdapi_event). * sctp_pdapi_event).
*/ */
pd->pdapi_length = sizeof(struct sctp_rcv_pdapi_event); pd->pdapi_length = sizeof(struct sctp_pdapi_event);
/* pdapi_indication: 32 bits (unsigned integer) /* pdapi_indication: 32 bits (unsigned integer)
* *
...@@ -784,7 +784,7 @@ __u16 sctp_ulpevent_get_notification_type(const struct sctp_ulpevent *event) ...@@ -784,7 +784,7 @@ __u16 sctp_ulpevent_get_notification_type(const struct sctp_ulpevent *event)
skb = sctp_event2skb((struct sctp_ulpevent *)event); skb = sctp_event2skb((struct sctp_ulpevent *)event);
notification = (union sctp_notification *) skb->data; notification = (union sctp_notification *) skb->data;
return notification->h.sn_type; return notification->sn_header.sn_type;
} }
/* Copy out the sndrcvinfo into a msghdr. */ /* Copy out the sndrcvinfo into a msghdr. */
......
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