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
9aec247d
Commit
9aec247d
authored
Oct 06, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
parents
dce32c78
3a867b36
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
77 additions
and
57 deletions
+77
-57
drivers/atm/fore200e.c
drivers/atm/fore200e.c
+4
-6
drivers/connector/connector.c
drivers/connector/connector.c
+2
-1
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_main.c
+3
-2
include/linux/atmdev.h
include/linux/atmdev.h
+1
-1
include/linux/connector.h
include/linux/connector.h
+1
-1
include/linux/textsearch.h
include/linux/textsearch.h
+2
-1
include/net/dn_nsp.h
include/net/dn_nsp.h
+4
-4
include/net/dn_route.h
include/net/dn_route.h
+1
-1
include/net/inet_hashtables.h
include/net/inet_hashtables.h
+1
-1
include/net/ip_vs.h
include/net/ip_vs.h
+1
-1
include/net/xfrm.h
include/net/xfrm.h
+6
-1
include/rxrpc/call.h
include/rxrpc/call.h
+1
-1
include/rxrpc/message.h
include/rxrpc/message.h
+1
-1
lib/ts_bm.c
lib/ts_bm.c
+1
-1
lib/ts_fsm.c
lib/ts_fsm.c
+1
-1
lib/ts_kmp.c
lib/ts_kmp.c
+1
-1
net/atm/atm_misc.c
net/atm/atm_misc.c
+1
-1
net/ax25/ax25_in.c
net/ax25/ax25_in.c
+1
-1
net/decnet/af_decnet.c
net/decnet/af_decnet.c
+4
-2
net/decnet/dn_nsp_out.c
net/decnet/dn_nsp_out.c
+14
-9
net/ipv4/ipvs/ip_vs_app.c
net/ipv4/ipvs/ip_vs_app.c
+1
-1
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Kconfig
+1
-1
net/ipv4/tcp_bic.c
net/ipv4/tcp_bic.c
+1
-1
net/ipv6/mcast.c
net/ipv6/mcast.c
+1
-1
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+1
-1
net/key/af_key.c
net/key/af_key.c
+12
-6
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink.c
+2
-1
net/netrom/nr_dev.c
net/netrom/nr_dev.c
+1
-1
net/rxrpc/call.c
net/rxrpc/call.c
+1
-1
net/rxrpc/connection.c
net/rxrpc/connection.c
+1
-1
net/sunrpc/sched.c
net/sunrpc/sched.c
+1
-1
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+3
-3
No files found.
drivers/atm/fore200e.c
View file @
9aec247d
...
...
@@ -178,14 +178,12 @@ fore200e_irq_itoa(int irq)
static
void
*
fore200e_kmalloc
(
int
size
,
in
t
flags
)
fore200e_kmalloc
(
int
size
,
unsigned
int
__nocas
t
flags
)
{
void
*
chunk
=
km
alloc
(
size
,
flags
);
void
*
chunk
=
kz
alloc
(
size
,
flags
);
if
(
chunk
)
memset
(
chunk
,
0x00
,
size
);
else
printk
(
FORE200E
"kmalloc() failed, requested size = %d, flags = 0x%x
\n
"
,
size
,
flags
);
if
(
!
chunk
)
printk
(
FORE200E
"kmalloc() failed, requested size = %d, flags = 0x%x
\n
"
,
size
,
flags
);
return
chunk
;
}
...
...
drivers/connector/connector.c
View file @
9aec247d
...
...
@@ -69,7 +69,8 @@ int cn_already_initialized = 0;
* a new message.
*
*/
int
cn_netlink_send
(
struct
cn_msg
*
msg
,
u32
__group
,
int
gfp_mask
)
int
cn_netlink_send
(
struct
cn_msg
*
msg
,
u32
__group
,
unsigned
int
__nocast
gfp_mask
)
{
struct
cn_callback_entry
*
__cbq
;
unsigned
int
size
;
...
...
drivers/net/bonding/bond_main.c
View file @
9aec247d
...
...
@@ -1289,12 +1289,13 @@ static void bond_mc_list_destroy(struct bonding *bond)
/*
* Copy all the Multicast addresses from src to the bonding device dst
*/
static
int
bond_mc_list_copy
(
struct
dev_mc_list
*
mc_list
,
struct
bonding
*
bond
,
int
gpf_flag
)
static
int
bond_mc_list_copy
(
struct
dev_mc_list
*
mc_list
,
struct
bonding
*
bond
,
unsigned
int
__nocast
gfp_flag
)
{
struct
dev_mc_list
*
dmi
,
*
new_dmi
;
for
(
dmi
=
mc_list
;
dmi
;
dmi
=
dmi
->
next
)
{
new_dmi
=
kmalloc
(
sizeof
(
struct
dev_mc_list
),
g
pf
_flag
);
new_dmi
=
kmalloc
(
sizeof
(
struct
dev_mc_list
),
g
fp
_flag
);
if
(
!
new_dmi
)
{
/* FIXME: Potential memory leak !!! */
...
...
include/linux/atmdev.h
View file @
9aec247d
...
...
@@ -457,7 +457,7 @@ static inline void atm_dev_put(struct atm_dev *dev)
int
atm_charge
(
struct
atm_vcc
*
vcc
,
int
truesize
);
struct
sk_buff
*
atm_alloc_charge
(
struct
atm_vcc
*
vcc
,
int
pdu_size
,
in
t
gfp_flags
);
unsigned
int
__nocas
t
gfp_flags
);
int
atm_pcr_goal
(
struct
atm_trafprm
*
tp
);
void
vcc_release_async
(
struct
atm_vcc
*
vcc
,
int
reply
);
...
...
include/linux/connector.h
View file @
9aec247d
...
...
@@ -149,7 +149,7 @@ struct cn_dev {
int
cn_add_callback
(
struct
cb_id
*
,
char
*
,
void
(
*
callback
)
(
void
*
));
void
cn_del_callback
(
struct
cb_id
*
);
int
cn_netlink_send
(
struct
cn_msg
*
,
u32
,
in
t
);
int
cn_netlink_send
(
struct
cn_msg
*
,
u32
,
unsigned
int
__nocas
t
);
int
cn_queue_add_callback
(
struct
cn_queue_dev
*
dev
,
char
*
name
,
struct
cb_id
*
id
,
void
(
*
callback
)(
void
*
));
void
cn_queue_del_callback
(
struct
cn_queue_dev
*
dev
,
struct
cb_id
*
id
);
...
...
include/linux/textsearch.h
View file @
9aec247d
...
...
@@ -158,7 +158,8 @@ extern unsigned int textsearch_find_continuous(struct ts_config *,
#define TS_PRIV_ALIGNTO 8
#define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1))
static
inline
struct
ts_config
*
alloc_ts_config
(
size_t
payload
,
int
gfp_mask
)
static
inline
struct
ts_config
*
alloc_ts_config
(
size_t
payload
,
unsigned
int
__nocast
gfp_mask
)
{
struct
ts_config
*
conf
;
...
...
include/net/dn_nsp.h
View file @
9aec247d
...
...
@@ -19,9 +19,9 @@ extern void dn_nsp_send_data_ack(struct sock *sk);
extern
void
dn_nsp_send_oth_ack
(
struct
sock
*
sk
);
extern
void
dn_nsp_delayed_ack
(
struct
sock
*
sk
);
extern
void
dn_send_conn_ack
(
struct
sock
*
sk
);
extern
void
dn_send_conn_conf
(
struct
sock
*
sk
,
in
t
gfp
);
extern
void
dn_send_conn_conf
(
struct
sock
*
sk
,
unsigned
int
__nocas
t
gfp
);
extern
void
dn_nsp_send_disc
(
struct
sock
*
sk
,
unsigned
char
type
,
unsigned
short
reason
,
in
t
gfp
);
unsigned
short
reason
,
unsigned
int
__nocas
t
gfp
);
extern
void
dn_nsp_return_disc
(
struct
sk_buff
*
skb
,
unsigned
char
type
,
unsigned
short
reason
);
extern
void
dn_nsp_send_link
(
struct
sock
*
sk
,
unsigned
char
lsflags
,
char
fcval
);
...
...
@@ -29,14 +29,14 @@ extern void dn_nsp_send_conninit(struct sock *sk, unsigned char flags);
extern
void
dn_nsp_output
(
struct
sock
*
sk
);
extern
int
dn_nsp_check_xmit_queue
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
struct
sk_buff_head
*
q
,
unsigned
short
acknum
);
extern
void
dn_nsp_queue_xmit
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
in
t
gfp
,
int
oob
);
extern
void
dn_nsp_queue_xmit
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
unsigned
int
__nocas
t
gfp
,
int
oob
);
extern
unsigned
long
dn_nsp_persist
(
struct
sock
*
sk
);
extern
int
dn_nsp_xmit_timeout
(
struct
sock
*
sk
);
extern
int
dn_nsp_rx
(
struct
sk_buff
*
);
extern
int
dn_nsp_backlog_rcv
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
);
extern
struct
sk_buff
*
dn_alloc_skb
(
struct
sock
*
sk
,
int
size
,
in
t
pri
);
extern
struct
sk_buff
*
dn_alloc_skb
(
struct
sock
*
sk
,
int
size
,
unsigned
int
__nocas
t
pri
);
extern
struct
sk_buff
*
dn_alloc_send_skb
(
struct
sock
*
sk
,
size_t
*
size
,
int
noblock
,
long
timeo
,
int
*
err
);
#define NSP_REASON_OK 0
/* No error */
...
...
include/net/dn_route.h
View file @
9aec247d
...
...
@@ -15,7 +15,7 @@
GNU General Public License for more details.
*******************************************************************************/
extern
struct
sk_buff
*
dn_alloc_skb
(
struct
sock
*
sk
,
int
size
,
in
t
pri
);
extern
struct
sk_buff
*
dn_alloc_skb
(
struct
sock
*
sk
,
int
size
,
unsigned
int
__nocas
t
pri
);
extern
int
dn_route_output_sock
(
struct
dst_entry
**
pprt
,
struct
flowi
*
,
struct
sock
*
sk
,
int
flags
);
extern
int
dn_cache_dump
(
struct
sk_buff
*
skb
,
struct
netlink_callback
*
cb
);
extern
int
dn_cache_getroute
(
struct
sk_buff
*
skb
,
struct
nlmsghdr
*
nlh
,
void
*
arg
);
...
...
include/net/inet_hashtables.h
View file @
9aec247d
...
...
@@ -40,7 +40,7 @@
struct
inet_ehash_bucket
{
rwlock_t
lock
;
struct
hlist_head
chain
;
}
__attribute__
((
__aligned__
(
8
)))
;
};
/* There are a few simple rules, which allow for local port reuse by
* an application. In essence:
...
...
include/net/ip_vs.h
View file @
9aec247d
...
...
@@ -832,7 +832,7 @@ extern void ip_vs_app_inc_put(struct ip_vs_app *inc);
extern
int
ip_vs_app_pkt_out
(
struct
ip_vs_conn
*
,
struct
sk_buff
**
pskb
);
extern
int
ip_vs_app_pkt_in
(
struct
ip_vs_conn
*
,
struct
sk_buff
**
pskb
);
extern
int
ip_vs_skb_replace
(
struct
sk_buff
*
skb
,
in
t
pri
,
extern
int
ip_vs_skb_replace
(
struct
sk_buff
*
skb
,
unsigned
int
__nocas
t
pri
,
char
*
o_buf
,
int
o_len
,
char
*
n_buf
,
int
n_len
);
extern
int
ip_vs_app_init
(
void
);
extern
void
ip_vs_app_cleanup
(
void
);
...
...
include/net/xfrm.h
View file @
9aec247d
...
...
@@ -875,7 +875,7 @@ static inline int xfrm_dst_lookup(struct xfrm_dst **dst, struct flowi *fl, unsig
}
#endif
struct
xfrm_policy
*
xfrm_policy_alloc
(
in
t
gfp
);
struct
xfrm_policy
*
xfrm_policy_alloc
(
unsigned
int
__nocas
t
gfp
);
extern
int
xfrm_policy_walk
(
int
(
*
func
)(
struct
xfrm_policy
*
,
int
,
int
,
void
*
),
void
*
);
int
xfrm_policy_insert
(
int
dir
,
struct
xfrm_policy
*
policy
,
int
excl
);
struct
xfrm_policy
*
xfrm_policy_bysel
(
int
dir
,
struct
xfrm_selector
*
sel
,
...
...
@@ -931,4 +931,9 @@ static inline int xfrm_addr_cmp(xfrm_address_t *a, xfrm_address_t *b,
}
}
static
inline
int
xfrm_policy_id2dir
(
u32
index
)
{
return
index
&
7
;
}
#endif
/* _NET_XFRM_H */
include/rxrpc/call.h
View file @
9aec247d
...
...
@@ -203,7 +203,7 @@ extern int rxrpc_call_write_data(struct rxrpc_call *call,
size_t
sioc
,
struct
kvec
*
siov
,
uint8_t
rxhdr_flags
,
in
t
alloc_flags
,
unsigned
int
__nocas
t
alloc_flags
,
int
dup_data
,
size_t
*
size_sent
);
...
...
include/rxrpc/message.h
View file @
9aec247d
...
...
@@ -63,7 +63,7 @@ extern int rxrpc_conn_newmsg(struct rxrpc_connection *conn,
uint8_t
type
,
int
count
,
struct
kvec
*
diov
,
in
t
alloc_flags
,
unsigned
int
__nocas
t
alloc_flags
,
struct
rxrpc_message
**
_msg
);
extern
int
rxrpc_conn_sendmsg
(
struct
rxrpc_connection
*
conn
,
struct
rxrpc_message
*
msg
);
...
...
lib/ts_bm.c
View file @
9aec247d
...
...
@@ -127,7 +127,7 @@ static void compute_prefix_tbl(struct ts_bm *bm, const u8 *pattern,
}
static
struct
ts_config
*
bm_init
(
const
void
*
pattern
,
unsigned
int
len
,
in
t
gfp_mask
)
unsigned
int
__nocas
t
gfp_mask
)
{
struct
ts_config
*
conf
;
struct
ts_bm
*
bm
;
...
...
lib/ts_fsm.c
View file @
9aec247d
...
...
@@ -258,7 +258,7 @@ static unsigned int fsm_find(struct ts_config *conf, struct ts_state *state)
}
static
struct
ts_config
*
fsm_init
(
const
void
*
pattern
,
unsigned
int
len
,
in
t
gfp_mask
)
unsigned
int
__nocas
t
gfp_mask
)
{
int
i
,
err
=
-
EINVAL
;
struct
ts_config
*
conf
;
...
...
lib/ts_kmp.c
View file @
9aec247d
...
...
@@ -87,7 +87,7 @@ static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len,
}
static
struct
ts_config
*
kmp_init
(
const
void
*
pattern
,
unsigned
int
len
,
in
t
gfp_mask
)
unsigned
int
__nocas
t
gfp_mask
)
{
struct
ts_config
*
conf
;
struct
ts_kmp
*
kmp
;
...
...
net/atm/atm_misc.c
View file @
9aec247d
...
...
@@ -25,7 +25,7 @@ int atm_charge(struct atm_vcc *vcc,int truesize)
struct
sk_buff
*
atm_alloc_charge
(
struct
atm_vcc
*
vcc
,
int
pdu_size
,
in
t
gfp_flags
)
unsigned
int
__nocas
t
gfp_flags
)
{
struct
sock
*
sk
=
sk_atm
(
vcc
);
int
guess
=
atm_guess_pdu2truesize
(
pdu_size
);
...
...
net/ax25/ax25_in.c
View file @
9aec247d
...
...
@@ -123,7 +123,7 @@ int ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb)
}
skb_pull
(
skb
,
1
);
/* Remove PID */
skb
->
h
.
raw
=
skb
->
data
;
skb
->
mac
.
raw
=
skb
->
nh
.
raw
;
skb
->
nh
.
raw
=
skb
->
data
;
skb
->
dev
=
ax25
->
ax25_dev
->
dev
;
skb
->
pkt_type
=
PACKET_HOST
;
...
...
net/decnet/af_decnet.c
View file @
9aec247d
...
...
@@ -452,7 +452,8 @@ static struct proto dn_proto = {
.
obj_size
=
sizeof
(
struct
dn_sock
),
};
static
struct
sock
*
dn_alloc_sock
(
struct
socket
*
sock
,
int
gfp
)
static
struct
sock
*
dn_alloc_sock
(
struct
socket
*
sock
,
unsigned
int
__nocast
gfp
)
{
struct
dn_scp
*
scp
;
struct
sock
*
sk
=
sk_alloc
(
PF_DECnet
,
gfp
,
&
dn_proto
,
1
);
...
...
@@ -804,7 +805,8 @@ static int dn_auto_bind(struct socket *sock)
return
rv
;
}
static
int
dn_confirm_accept
(
struct
sock
*
sk
,
long
*
timeo
,
int
allocation
)
static
int
dn_confirm_accept
(
struct
sock
*
sk
,
long
*
timeo
,
unsigned
int
__nocast
allocation
)
{
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
DEFINE_WAIT
(
wait
);
...
...
net/decnet/dn_nsp_out.c
View file @
9aec247d
...
...
@@ -117,7 +117,8 @@ static void dn_nsp_send(struct sk_buff *skb)
* The eventual aim is for each socket to have a cached header size
* for its outgoing packets, and to set hdr from this when sk != NULL.
*/
struct
sk_buff
*
dn_alloc_skb
(
struct
sock
*
sk
,
int
size
,
int
pri
)
struct
sk_buff
*
dn_alloc_skb
(
struct
sock
*
sk
,
int
size
,
unsigned
int
__nocast
pri
)
{
struct
sk_buff
*
skb
;
int
hdr
=
64
;
...
...
@@ -210,7 +211,8 @@ static void dn_nsp_rtt(struct sock *sk, long rtt)
*
* Returns: The number of times the packet has been sent previously
*/
static
inline
unsigned
dn_nsp_clone_and_send
(
struct
sk_buff
*
skb
,
int
gfp
)
static
inline
unsigned
dn_nsp_clone_and_send
(
struct
sk_buff
*
skb
,
unsigned
int
__nocast
gfp
)
{
struct
dn_skb_cb
*
cb
=
DN_SKB_CB
(
skb
);
struct
sk_buff
*
skb2
;
...
...
@@ -350,7 +352,8 @@ static unsigned short *dn_nsp_mk_data_header(struct sock *sk, struct sk_buff *sk
return
ptr
;
}
void
dn_nsp_queue_xmit
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
int
gfp
,
int
oth
)
void
dn_nsp_queue_xmit
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
unsigned
int
__nocast
gfp
,
int
oth
)
{
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
struct
dn_skb_cb
*
cb
=
DN_SKB_CB
(
skb
);
...
...
@@ -517,7 +520,7 @@ static int dn_nsp_retrans_conn_conf(struct sock *sk)
return
0
;
}
void
dn_send_conn_conf
(
struct
sock
*
sk
,
in
t
gfp
)
void
dn_send_conn_conf
(
struct
sock
*
sk
,
unsigned
int
__nocas
t
gfp
)
{
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
struct
sk_buff
*
skb
=
NULL
;
...
...
@@ -549,7 +552,8 @@ void dn_send_conn_conf(struct sock *sk, int gfp)
static
__inline__
void
dn_nsp_do_disc
(
struct
sock
*
sk
,
unsigned
char
msgflg
,
unsigned
short
reason
,
int
gfp
,
struct
dst_entry
*
dst
,
unsigned
short
reason
,
unsigned
int
__nocast
gfp
,
struct
dst_entry
*
dst
,
int
ddl
,
unsigned
char
*
dd
,
__u16
rem
,
__u16
loc
)
{
struct
sk_buff
*
skb
=
NULL
;
...
...
@@ -591,7 +595,7 @@ static __inline__ void dn_nsp_do_disc(struct sock *sk, unsigned char msgflg,
void
dn_nsp_send_disc
(
struct
sock
*
sk
,
unsigned
char
msgflg
,
unsigned
short
reason
,
in
t
gfp
)
unsigned
short
reason
,
unsigned
int
__nocas
t
gfp
)
{
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
int
ddl
=
0
;
...
...
@@ -612,7 +616,7 @@ void dn_nsp_return_disc(struct sk_buff *skb, unsigned char msgflg,
{
struct
dn_skb_cb
*
cb
=
DN_SKB_CB
(
skb
);
int
ddl
=
0
;
in
t
gfp
=
GFP_ATOMIC
;
unsigned
int
__nocas
t
gfp
=
GFP_ATOMIC
;
dn_nsp_do_disc
(
NULL
,
msgflg
,
reason
,
gfp
,
skb
->
dst
,
ddl
,
NULL
,
cb
->
src_port
,
cb
->
dst_port
);
...
...
@@ -624,7 +628,7 @@ void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval)
struct
dn_scp
*
scp
=
DN_SK
(
sk
);
struct
sk_buff
*
skb
;
unsigned
char
*
ptr
;
in
t
gfp
=
GFP_ATOMIC
;
unsigned
int
__nocas
t
gfp
=
GFP_ATOMIC
;
if
((
skb
=
dn_alloc_skb
(
sk
,
DN_MAX_NSP_DATA_HEADER
+
2
,
gfp
))
==
NULL
)
return
;
...
...
@@ -659,7 +663,8 @@ void dn_nsp_send_conninit(struct sock *sk, unsigned char msgflg)
unsigned
char
menuver
;
struct
dn_skb_cb
*
cb
;
unsigned
char
type
=
1
;
int
allocation
=
(
msgflg
==
NSP_CI
)
?
sk
->
sk_allocation
:
GFP_ATOMIC
;
unsigned
int
__nocast
allocation
=
(
msgflg
==
NSP_CI
)
?
sk
->
sk_allocation
:
GFP_ATOMIC
;
struct
sk_buff
*
skb
=
dn_alloc_skb
(
sk
,
200
,
allocation
);
if
(
!
skb
)
...
...
net/ipv4/ipvs/ip_vs_app.c
View file @
9aec247d
...
...
@@ -604,7 +604,7 @@ static struct file_operations ip_vs_app_fops = {
/*
* Replace a segment of data with a new segment
*/
int
ip_vs_skb_replace
(
struct
sk_buff
*
skb
,
in
t
pri
,
int
ip_vs_skb_replace
(
struct
sk_buff
*
skb
,
unsigned
int
__nocas
t
pri
,
char
*
o_buf
,
int
o_len
,
char
*
n_buf
,
int
n_len
)
{
struct
iphdr
*
iph
;
...
...
net/ipv4/netfilter/Kconfig
View file @
9aec247d
...
...
@@ -141,7 +141,7 @@ config IP_NF_PPTP
tristate 'PPTP protocol support'
help
This module adds support for PPTP (Point to Point Tunnelling
Protocol, RFC2637) conn
c
ection tracking and NAT.
Protocol, RFC2637) connection tracking and NAT.
If you are running PPTP sessions over a stateful firewall or NAT
box, you may want to enable this feature.
...
...
net/ipv4/tcp_bic.c
View file @
9aec247d
...
...
@@ -136,7 +136,7 @@ static inline void bictcp_update(struct bictcp *ca, u32 cwnd)
else
if
(
cwnd
<
ca
->
last_max_cwnd
+
max_increment
*
(
BICTCP_B
-
1
))
/* slow start */
ca
->
cnt
=
(
cwnd
*
(
BICTCP_B
-
1
))
/
cwnd
-
ca
->
last_max_cwnd
;
/
(
cwnd
-
ca
->
last_max_cwnd
)
;
else
/* linear increase */
ca
->
cnt
=
cwnd
/
max_increment
;
...
...
net/ipv6/mcast.c
View file @
9aec247d
...
...
@@ -1393,7 +1393,7 @@ static void mld_sendpack(struct sk_buff *skb)
static
int
grec_size
(
struct
ifmcaddr6
*
pmc
,
int
type
,
int
gdel
,
int
sdel
)
{
return
sizeof
(
struct
mld2_grec
)
+
4
*
mld_scount
(
pmc
,
type
,
gdel
,
sdel
);
return
sizeof
(
struct
mld2_grec
)
+
16
*
mld_scount
(
pmc
,
type
,
gdel
,
sdel
);
}
static
struct
sk_buff
*
add_grhead
(
struct
sk_buff
*
skb
,
struct
ifmcaddr6
*
pmc
,
...
...
net/ipv6/ndisc.c
View file @
9aec247d
...
...
@@ -1450,7 +1450,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
static
void
pndisc_redo
(
struct
sk_buff
*
skb
)
{
ndisc_r
cv
(
skb
);
ndisc_r
ecv_ns
(
skb
);
kfree_skb
(
skb
);
}
...
...
net/key/af_key.c
View file @
9aec247d
...
...
@@ -185,7 +185,7 @@ static int pfkey_release(struct socket *sock)
}
static
int
pfkey_broadcast_one
(
struct
sk_buff
*
skb
,
struct
sk_buff
**
skb2
,
in
t
allocation
,
struct
sock
*
sk
)
unsigned
int
__nocas
t
allocation
,
struct
sock
*
sk
)
{
int
err
=
-
ENOBUFS
;
...
...
@@ -217,7 +217,7 @@ static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2,
#define BROADCAST_ONE 1
#define BROADCAST_REGISTERED 2
#define BROADCAST_PROMISC_ONLY 4
static
int
pfkey_broadcast
(
struct
sk_buff
*
skb
,
in
t
allocation
,
static
int
pfkey_broadcast
(
struct
sk_buff
*
skb
,
unsigned
int
__nocas
t
allocation
,
int
broadcast_flags
,
struct
sock
*
one_sk
)
{
struct
sock
*
sk
;
...
...
@@ -1416,7 +1416,8 @@ static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr,
return
0
;
}
static
struct
sk_buff
*
compose_sadb_supported
(
struct
sadb_msg
*
orig
,
int
allocation
)
static
struct
sk_buff
*
compose_sadb_supported
(
struct
sadb_msg
*
orig
,
unsigned
int
__nocast
allocation
)
{
struct
sk_buff
*
skb
;
struct
sadb_msg
*
hdr
;
...
...
@@ -2153,6 +2154,7 @@ static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, struct sadb
static
int
pfkey_spdget
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
,
struct
sadb_msg
*
hdr
,
void
**
ext_hdrs
)
{
unsigned
int
dir
;
int
err
;
struct
sadb_x_policy
*
pol
;
struct
xfrm_policy
*
xp
;
...
...
@@ -2161,7 +2163,11 @@ static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, struct sadb_msg *h
if
((
pol
=
ext_hdrs
[
SADB_X_EXT_POLICY
-
1
])
==
NULL
)
return
-
EINVAL
;
xp
=
xfrm_policy_byid
(
0
,
pol
->
sadb_x_policy_id
,
dir
=
xfrm_policy_id2dir
(
pol
->
sadb_x_policy_id
);
if
(
dir
>=
XFRM_POLICY_MAX
)
return
-
EINVAL
;
xp
=
xfrm_policy_byid
(
dir
,
pol
->
sadb_x_policy_id
,
hdr
->
sadb_msg_type
==
SADB_X_SPDDELETE2
);
if
(
xp
==
NULL
)
return
-
ENOENT
;
...
...
@@ -2173,9 +2179,9 @@ static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, struct sadb_msg *h
if
(
hdr
->
sadb_msg_type
==
SADB_X_SPDDELETE2
)
{
c
.
data
.
byid
=
1
;
c
.
event
=
XFRM_MSG_DELPOLICY
;
km_policy_notify
(
xp
,
pol
->
sadb_x_policy_dir
-
1
,
&
c
);
km_policy_notify
(
xp
,
dir
,
&
c
);
}
else
{
err
=
key_pol_get_resp
(
sk
,
xp
,
hdr
,
pol
->
sadb_x_policy_dir
-
1
);
err
=
key_pol_get_resp
(
sk
,
xp
,
hdr
,
dir
);
}
xfrm_pol_put
(
xp
);
...
...
net/netfilter/nfnetlink.c
View file @
9aec247d
...
...
@@ -195,7 +195,8 @@ nfnetlink_check_attributes(struct nfnetlink_subsystem *subsys,
int
nfnetlink_send
(
struct
sk_buff
*
skb
,
u32
pid
,
unsigned
group
,
int
echo
)
{
int
allocation
=
in_interrupt
()
?
GFP_ATOMIC
:
GFP_KERNEL
;
unsigned
int
__nocast
allocation
=
in_interrupt
()
?
GFP_ATOMIC
:
GFP_KERNEL
;
int
err
=
0
;
NETLINK_CB
(
skb
).
dst_group
=
group
;
...
...
net/netrom/nr_dev.c
View file @
9aec247d
...
...
@@ -58,7 +58,7 @@ int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
/* Spoof incoming device */
skb
->
dev
=
dev
;
skb
->
h
.
raw
=
skb
->
data
;
skb
->
mac
.
raw
=
skb
->
nh
.
raw
;
skb
->
nh
.
raw
=
skb
->
data
;
skb
->
pkt_type
=
PACKET_HOST
;
...
...
net/rxrpc/call.c
View file @
9aec247d
...
...
@@ -1923,7 +1923,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
size_t
sioc
,
struct
kvec
*
siov
,
u8
rxhdr_flags
,
in
t
alloc_flags
,
unsigned
int
__nocas
t
alloc_flags
,
int
dup_data
,
size_t
*
size_sent
)
{
...
...
net/rxrpc/connection.c
View file @
9aec247d
...
...
@@ -522,7 +522,7 @@ int rxrpc_conn_newmsg(struct rxrpc_connection *conn,
uint8_t
type
,
int
dcount
,
struct
kvec
diov
[],
in
t
alloc_flags
,
unsigned
int
__nocas
t
alloc_flags
,
struct
rxrpc_message
**
_msg
)
{
struct
rxrpc_message
*
msg
;
...
...
net/sunrpc/sched.c
View file @
9aec247d
...
...
@@ -719,7 +719,7 @@ static void rpc_async_schedule(void *arg)
void
*
rpc_malloc
(
struct
rpc_task
*
task
,
size_t
size
)
{
in
t
gfp
;
unsigned
int
__nocas
t
gfp
;
if
(
task
->
tk_flags
&
RPC_TASK_SWAPPER
)
gfp
=
GFP_ATOMIC
;
...
...
net/xfrm/xfrm_policy.c
View file @
9aec247d
...
...
@@ -163,7 +163,7 @@ static void xfrm_policy_timer(unsigned long data)
if
(
xp
->
dead
)
goto
out
;
dir
=
x
p
->
index
&
7
;
dir
=
x
frm_policy_id2dir
(
xp
->
index
)
;
if
(
xp
->
lft
.
hard_add_expires_seconds
)
{
long
tmo
=
xp
->
lft
.
hard_add_expires_seconds
+
...
...
@@ -225,7 +225,7 @@ static void xfrm_policy_timer(unsigned long data)
* SPD calls.
*/
struct
xfrm_policy
*
xfrm_policy_alloc
(
in
t
gfp
)
struct
xfrm_policy
*
xfrm_policy_alloc
(
unsigned
int
__nocas
t
gfp
)
{
struct
xfrm_policy
*
policy
;
...
...
@@ -417,7 +417,7 @@ struct xfrm_policy *xfrm_policy_byid(int dir, u32 id, int delete)
struct
xfrm_policy
*
pol
,
**
p
;
write_lock_bh
(
&
xfrm_policy_lock
);
for
(
p
=
&
xfrm_policy_list
[
id
&
7
];
(
pol
=*
p
)
!=
NULL
;
p
=
&
pol
->
next
)
{
for
(
p
=
&
xfrm_policy_list
[
dir
];
(
pol
=*
p
)
!=
NULL
;
p
=
&
pol
->
next
)
{
if
(
pol
->
index
==
id
)
{
xfrm_pol_hold
(
pol
);
if
(
delete
)
...
...
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