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
nexedi
linux
Commits
49a1f4d4
Commit
49a1f4d4
authored
May 07, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
08faf52b
d95263f5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
crypto/crc32c.c
crypto/crc32c.c
+2
-2
net/sctp/outqueue.c
net/sctp/outqueue.c
+4
-2
net/sctp/ulpevent.c
net/sctp/ulpevent.c
+1
-1
net/sctp/ulpqueue.c
net/sctp/ulpqueue.c
+1
-1
No files found.
crypto/crc32c.c
View file @
49a1f4d4
...
...
@@ -56,12 +56,12 @@ static int chksum_setkey(void *ctx, const u8 *key, unsigned int keylen,
return
0
;
}
static
void
chksum_update
(
void
*
ctx
,
const
u8
*
data
,
size_
t
length
)
static
void
chksum_update
(
void
*
ctx
,
const
u8
*
data
,
unsigned
in
t
length
)
{
struct
chksum_ctx
*
mctx
=
ctx
;
u32
mcrc
;
mcrc
=
crc32c
(
mctx
->
crc
,
data
,
length
);
mcrc
=
crc32c
(
mctx
->
crc
,
data
,
(
size_t
)
length
);
mctx
->
crc
=
mcrc
;
}
...
...
net/sctp/outqueue.c
View file @
49a1f4d4
...
...
@@ -1056,7 +1056,9 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_sackhdr *sack)
}
/* Get the highest TSN in the sack. */
highest_tsn
=
sack_ctsn
+
highest_tsn
=
sack_ctsn
;
if
(
sack
->
num_gap_ack_blocks
)
highest_tsn
+=
ntohs
(
frags
[
ntohs
(
sack
->
num_gap_ack_blocks
)
-
1
].
gab
.
end
);
if
(
TSN_lt
(
asoc
->
highest_sacked
,
highest_tsn
))
{
...
...
net/sctp/ulpevent.c
View file @
49a1f4d4
...
...
@@ -77,7 +77,7 @@ struct sctp_ulpevent *sctp_ulpevent_new(int size, int msg_flags, int gfp)
/* Initialize an ULP event from an given skb. */
void
sctp_ulpevent_init
(
struct
sctp_ulpevent
*
event
,
int
msg_flags
)
{
memset
(
event
,
sizeof
(
struct
sctp_ulpevent
),
0x00
);
memset
(
event
,
0
,
sizeof
(
struct
sctp_ulpevent
)
);
event
->
msg_flags
=
msg_flags
;
}
...
...
net/sctp/ulpqueue.c
View file @
49a1f4d4
...
...
@@ -79,7 +79,7 @@ struct sctp_ulpq *sctp_ulpq_new(struct sctp_association *asoc, int gfp)
struct
sctp_ulpq
*
sctp_ulpq_init
(
struct
sctp_ulpq
*
ulpq
,
struct
sctp_association
*
asoc
)
{
memset
(
ulpq
,
sizeof
(
struct
sctp_ulpq
),
0x00
);
memset
(
ulpq
,
0
,
sizeof
(
struct
sctp_ulpq
)
);
ulpq
->
asoc
=
asoc
;
skb_queue_head_init
(
&
ulpq
->
reasm
);
...
...
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