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
144894bc
Commit
144894bc
authored
Apr 01, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
797886bf
d6a3d224
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
7 deletions
+38
-7
crypto/deflate.c
crypto/deflate.c
+13
-1
include/net/icmp.h
include/net/icmp.h
+3
-3
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+2
-2
net/xfrm/xfrm_state.c
net/xfrm/xfrm_state.c
+19
-1
net/xfrm/xfrm_user.c
net/xfrm/xfrm_user.c
+1
-0
No files found.
crypto/deflate.c
View file @
144894bc
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/net.h>
#include <linux/net.h>
#include <linux/slab.h>
#define DEFLATE_DEF_LEVEL Z_DEFAULT_COMPRESSION
#define DEFLATE_DEF_LEVEL Z_DEFAULT_COMPRESSION
#define DEFLATE_DEF_WINBITS 11
#define DEFLATE_DEF_WINBITS 11
...
@@ -181,7 +182,18 @@ static int deflate_decompress(void *ctx, const u8 *src, unsigned int slen,
...
@@ -181,7 +182,18 @@ static int deflate_decompress(void *ctx, const u8 *src, unsigned int slen,
stream
->
next_out
=
(
u8
*
)
dst
;
stream
->
next_out
=
(
u8
*
)
dst
;
stream
->
avail_out
=
*
dlen
;
stream
->
avail_out
=
*
dlen
;
ret
=
zlib_inflate
(
stream
,
Z_SYNC_FLUSH
);
/*
* Work around a bug in zlib, which sometimes wants to taste an extra
* byte when being used in the (undocumented) raw deflate mode.
* (From USAGI).
*/
if
(
ret
==
Z_OK
&&
!
stream
->
avail_in
&&
stream
->
avail_out
)
{
u8
zerostuff
=
0
;
stream
->
next_in
=
&
zerostuff
;
stream
->
avail_in
=
1
;
ret
=
zlib_inflate
(
stream
,
Z_FINISH
);
ret
=
zlib_inflate
(
stream
,
Z_FINISH
);
}
if
(
ret
!=
Z_STREAM_END
)
{
if
(
ret
!=
Z_STREAM_END
)
{
ret
=
-
EINVAL
;
ret
=
-
EINVAL
;
goto
out
;
goto
out
;
...
...
include/net/icmp.h
View file @
144894bc
...
@@ -39,15 +39,15 @@ DECLARE_SNMP_STAT(struct icmp_mib, icmp_statistics);
...
@@ -39,15 +39,15 @@ DECLARE_SNMP_STAT(struct icmp_mib, icmp_statistics);
#define ICMP_INC_STATS_FIELD(offt) \
#define ICMP_INC_STATS_FIELD(offt) \
(*((unsigned long *) ((void *) \
(*((unsigned long *) ((void *) \
per_cpu_ptr(icmp_statistics[!in_softirq()],\
per_cpu_ptr(icmp_statistics[!in_softirq()],\
smp_processor_id())
) + offt))++;
smp_processor_id())
+ offt)))++
#define ICMP_INC_STATS_BH_FIELD(offt) \
#define ICMP_INC_STATS_BH_FIELD(offt) \
(*((unsigned long *) ((void *) \
(*((unsigned long *) ((void *) \
per_cpu_ptr(icmp_statistics[0], \
per_cpu_ptr(icmp_statistics[0], \
smp_processor_id())
) + offt))++;
smp_processor_id())
+ offt)))++
#define ICMP_INC_STATS_USER_FIELD(offt) \
#define ICMP_INC_STATS_USER_FIELD(offt) \
(*((unsigned long *) ((void *) \
(*((unsigned long *) ((void *) \
per_cpu_ptr(icmp_statistics[1], \
per_cpu_ptr(icmp_statistics[1], \
smp_processor_id())
) + offt))++;
smp_processor_id())
+ offt)))++
extern
void
icmp_send
(
struct
sk_buff
*
skb_in
,
int
type
,
int
code
,
u32
info
);
extern
void
icmp_send
(
struct
sk_buff
*
skb_in
,
int
type
,
int
code
,
u32
info
);
extern
int
icmp_rcv
(
struct
sk_buff
*
skb
);
extern
int
icmp_rcv
(
struct
sk_buff
*
skb
);
...
...
net/ipv6/tcp_ipv6.c
View file @
144894bc
...
@@ -1639,10 +1639,10 @@ static int tcp_v6_rcv(struct sk_buff **pskb)
...
@@ -1639,10 +1639,10 @@ static int tcp_v6_rcv(struct sk_buff **pskb)
if
(
sk
->
state
==
TCP_TIME_WAIT
)
if
(
sk
->
state
==
TCP_TIME_WAIT
)
goto
do_time_wait
;
goto
do_time_wait
;
if
(
sk_filter
(
sk
,
skb
,
0
))
if
(
!
xfrm6_policy_check
(
sk
,
XFRM_POLICY_IN
,
skb
))
goto
discard_and_relse
;
goto
discard_and_relse
;
if
(
!
xfrm6_policy_check
(
sk
,
XFRM_POLICY_IN
,
skb
))
if
(
sk_filter
(
sk
,
skb
,
0
))
goto
discard_and_relse
;
goto
discard_and_relse
;
skb
->
dev
=
NULL
;
skb
->
dev
=
NULL
;
...
...
net/xfrm/xfrm_state.c
View file @
144894bc
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include <net/xfrm.h>
#include <net/xfrm.h>
#include <linux/pfkeyv2.h>
#include <linux/pfkeyv2.h>
#include <linux/ipsec.h>
#include <linux/ipsec.h>
#include <asm/uaccess.h>
/* Each xfrm_state may be linked to two tables:
/* Each xfrm_state may be linked to two tables:
...
@@ -176,10 +177,27 @@ static void __xfrm_state_delete(struct xfrm_state *x)
...
@@ -176,10 +177,27 @@ static void __xfrm_state_delete(struct xfrm_state *x)
spin_unlock
(
&
xfrm_state_lock
);
spin_unlock
(
&
xfrm_state_lock
);
if
(
del_timer
(
&
x
->
timer
))
if
(
del_timer
(
&
x
->
timer
))
atomic_dec
(
&
x
->
refcnt
);
atomic_dec
(
&
x
->
refcnt
);
if
(
atomic_read
(
&
x
->
refcnt
)
!=
1
)
/* The number two in this test is the reference
* mentioned in the comment below plus the reference
* our caller holds. A larger value means that
* there are DSTs attached to this xfrm_state.
*/
if
(
atomic_read
(
&
x
->
refcnt
)
>
2
)
xfrm_flush_bundles
(
x
);
xfrm_flush_bundles
(
x
);
}
}
/* All xfrm_state objects are created by one of two possible
* paths:
*
* 1) xfrm_state_alloc --> xfrm_state_insert
* 2) xfrm_state_lookup --> xfrm_state_insert
*
* The xfrm_state_lookup or xfrm_state_alloc call gives a
* reference, and that is what we are dropping here.
*/
atomic_dec
(
&
x
->
refcnt
);
if
(
kill
&&
x
->
type
)
if
(
kill
&&
x
->
type
)
x
->
type
->
destructor
(
x
);
x
->
type
->
destructor
(
x
);
wake_up
(
&
km_waitq
);
wake_up
(
&
km_waitq
);
...
...
net/xfrm/xfrm_user.c
View file @
144894bc
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <linux/security.h>
#include <linux/security.h>
#include <net/sock.h>
#include <net/sock.h>
#include <net/xfrm.h>
#include <net/xfrm.h>
#include <asm/uaccess.h>
static
struct
sock
*
xfrm_nl
;
static
struct
sock
*
xfrm_nl
;
...
...
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