Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6701f01b
Commit
6701f01b
authored
Oct 02, 2002
by
Daisy Chang
Committed by
Jon Grimm
Oct 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove excessive spaces.
parent
a4cae070
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
135 deletions
+119
-135
net/sctp/sm_make_chunk.c
net/sctp/sm_make_chunk.c
+46
-52
net/sctp/sm_statefuns.c
net/sctp/sm_statefuns.c
+73
-83
No files found.
net/sctp/sm_make_chunk.c
View file @
6701f01b
...
...
@@ -911,9 +911,8 @@ sctp_chunk_t *sctp_make_op_error_space(const sctp_association_t *asoc,
if
(
chunk
)
retval
->
transport
=
chunk
->
transport
;
nodata:
nodata:
return
retval
;
}
/* Create an Operation Error chunk. */
...
...
@@ -1438,7 +1437,6 @@ int sctp_verify_init(const sctp_association_t *asoc,
sctpParam_t
param
;
uint8_t
*
end
;
/* FIXME - Verify the fixed fields of the INIT chunk. Also, verify
* the mandatory parameters somewhere here and generate either the
* "Missing mandatory parameter" error or the "Invalid mandatory
...
...
@@ -1458,8 +1456,6 @@ int sctp_verify_init(const sctp_association_t *asoc,
}
/* for (loop through all parameters) */
return
1
;
}
...
...
@@ -1503,7 +1499,6 @@ int sctp_verify_param(const sctp_association_t *asoc,
break
;
}
return
retval
;
}
/* RFC 3.2.1 & the Implementers Guide 2.2.
...
...
@@ -1586,7 +1581,6 @@ int sctp_process_unk_param(const sctp_association_t *asoc,
}
return
retval
;
}
/* Unpack the parameters in an INIT packet.
...
...
net/sctp/sm_statefuns.c
View file @
6701f01b
...
...
@@ -240,7 +240,6 @@ sctp_disposition_t sctp_sf_do_5_1B_init(const sctp_endpoint_t *ep,
return
sctp_sf_tabort_8_4_8
(
ep
,
asoc
,
type
,
arg
,
commands
);
}
}
/* Grab the INIT header. */
...
...
@@ -2523,7 +2522,6 @@ sctp_disposition_t sctp_sf_tabort_8_4_8(const sctp_endpoint_t *ep,
sctp_chunk_t
*
chunk
=
arg
;
sctp_chunk_t
*
abort
;
packet
=
sctp_ootb_pkt_new
(
asoc
,
chunk
);
if
(
packet
)
{
...
...
@@ -2548,7 +2546,6 @@ sctp_disposition_t sctp_sf_tabort_8_4_8(const sctp_endpoint_t *ep,
}
return
SCTP_DISPOSITION_NOMEM
;
}
/*
...
...
@@ -2728,7 +2725,6 @@ sctp_disposition_t sctp_sf_shut_8_4_5(const sctp_endpoint_t *ep,
sctp_chunk_t
*
chunk
=
arg
;
sctp_chunk_t
*
shut
;
packet
=
sctp_ootb_pkt_new
(
asoc
,
chunk
);
if
(
packet
)
{
...
...
@@ -2753,8 +2749,8 @@ sctp_disposition_t sctp_sf_shut_8_4_5(const sctp_endpoint_t *ep,
}
return
SCTP_DISPOSITION_NOMEM
;
}
/*
* Process an unknown chunk.
*
...
...
@@ -4103,7 +4099,6 @@ sctp_packet_t *sctp_abort_pkt_new(const sctp_endpoint_t *ep,
sctp_packet_t
*
packet
;
sctp_chunk_t
*
abort
;
packet
=
sctp_ootb_pkt_new
(
asoc
,
chunk
);
if
(
packet
)
{
...
...
@@ -4128,7 +4123,6 @@ sctp_packet_t *sctp_abort_pkt_new(const sctp_endpoint_t *ep,
}
return
packet
;
}
/* Allocate a packet for responding in the OOTB conditions. */
...
...
@@ -4141,7 +4135,6 @@ sctp_packet_t *sctp_ootb_pkt_new(const sctp_association_t *asoc,
__u16
dport
;
__u32
vtag
;
/* Get the source and destination port from the inbound packet. */
sport
=
ntohs
(
chunk
->
sctp_hdr
->
dest
);
dport
=
ntohs
(
chunk
->
sctp_hdr
->
source
);
...
...
@@ -4175,14 +4168,11 @@ sctp_packet_t *sctp_ootb_pkt_new(const sctp_association_t *asoc,
sctp_transport_free
(
transport
);
nomem:
return
NULL
;
}
/* Free the packet allocated earlier for responding in the OOTB condition. */
void
sctp_ootb_pkt_free
(
sctp_packet_t
*
packet
)
{
sctp_transport_free
(
packet
->
transport
);
sctp_packet_free
(
packet
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment