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
f46ce958
Commit
f46ce958
authored
Mar 14, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux
parents
22e9af4e
4ef9f3f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
78 deletions
+6
-78
crypto/tcrypt.c
crypto/tcrypt.c
+1
-1
net/ipv4/ip_output.c
net/ipv4/ip_output.c
+4
-0
net/ipv4/ipvs/Kconfig
net/ipv4/ipvs/Kconfig
+1
-1
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+0
-76
No files found.
crypto/tcrypt.c
View file @
f46ce958
...
@@ -558,7 +558,7 @@ do_test(void)
...
@@ -558,7 +558,7 @@ do_test(void)
//ARC4
//ARC4
test_cipher
(
"arc4"
,
MODE_ECB
,
ENCRYPT
,
arc4_enc_tv_template
,
ARC4_ENC_TEST_VECTORS
);
test_cipher
(
"arc4"
,
MODE_ECB
,
ENCRYPT
,
arc4_enc_tv_template
,
ARC4_ENC_TEST_VECTORS
);
test_cipher
(
"arc4
x
"
,
MODE_ECB
,
DECRYPT
,
arc4_dec_tv_template
,
ARC4_DEC_TEST_VECTORS
);
test_cipher
(
"arc4"
,
MODE_ECB
,
DECRYPT
,
arc4_dec_tv_template
,
ARC4_DEC_TEST_VECTORS
);
test_hash
(
"sha384"
,
sha384_tv_template
,
SHA384_TEST_VECTORS
);
test_hash
(
"sha384"
,
sha384_tv_template
,
SHA384_TEST_VECTORS
);
test_hash
(
"sha512"
,
sha512_tv_template
,
SHA512_TEST_VECTORS
);
test_hash
(
"sha512"
,
sha512_tv_template
,
SHA512_TEST_VECTORS
);
...
...
net/ipv4/ip_output.c
View file @
f46ce958
...
@@ -1187,6 +1187,10 @@ int ip_push_pending_frames(struct sock *sk)
...
@@ -1187,6 +1187,10 @@ int ip_push_pending_frames(struct sock *sk)
out:
out:
inet
->
cork
.
flags
&=
~
IPCORK_OPT
;
inet
->
cork
.
flags
&=
~
IPCORK_OPT
;
if
(
inet
->
cork
.
opt
)
{
kfree
(
inet
->
cork
.
opt
);
inet
->
cork
.
opt
=
NULL
;
}
if
(
inet
->
cork
.
rt
)
{
if
(
inet
->
cork
.
rt
)
{
ip_rt_put
(
inet
->
cork
.
rt
);
ip_rt_put
(
inet
->
cork
.
rt
);
inet
->
cork
.
rt
=
NULL
;
inet
->
cork
.
rt
=
NULL
;
...
...
net/ipv4/ipvs/Kconfig
View file @
f46ce958
...
@@ -119,7 +119,7 @@ config IP_VS_WRR
...
@@ -119,7 +119,7 @@ config IP_VS_WRR
module, choose M here. If unsure, say N.
module, choose M here. If unsure, say N.
config IP_VS_LC
config IP_VS_LC
tristate "least-connection scheduling
scheduling
"
tristate "least-connection scheduling"
depends on IP_VS
depends on IP_VS
---help---
---help---
The least-connection scheduling algorithm directs network
The least-connection scheduling algorithm directs network
...
...
net/ipv6/addrconf.c
View file @
f46ce958
...
@@ -2553,80 +2553,6 @@ static int inet6_fill_ifaddr(struct sk_buff *skb, struct inet6_ifaddr *ifa,
...
@@ -2553,80 +2553,6 @@ static int inet6_fill_ifaddr(struct sk_buff *skb, struct inet6_ifaddr *ifa,
return
-
1
;
return
-
1
;
}
}
static
int
inet6_fill_ifmcaddr
(
struct
sk_buff
*
skb
,
struct
ifmcaddr6
*
ifmca
,
u32
pid
,
u32
seq
,
int
event
)
{
struct
ifaddrmsg
*
ifm
;
struct
nlmsghdr
*
nlh
;
struct
ifa_cacheinfo
ci
;
unsigned
char
*
b
=
skb
->
tail
;
nlh
=
NLMSG_PUT
(
skb
,
pid
,
seq
,
event
,
sizeof
(
*
ifm
));
if
(
pid
)
nlh
->
nlmsg_flags
|=
NLM_F_MULTI
;
ifm
=
NLMSG_DATA
(
nlh
);
ifm
->
ifa_family
=
AF_INET6
;
ifm
->
ifa_prefixlen
=
128
;
ifm
->
ifa_flags
=
IFA_F_PERMANENT
;
ifm
->
ifa_scope
=
RT_SCOPE_UNIVERSE
;
if
(
ipv6_addr_scope
(
&
ifmca
->
mca_addr
)
&
IFA_SITE
)
ifm
->
ifa_scope
=
RT_SCOPE_SITE
;
ifm
->
ifa_index
=
ifmca
->
idev
->
dev
->
ifindex
;
RTA_PUT
(
skb
,
IFA_ADDRESS
,
16
,
&
ifmca
->
mca_addr
);
ci
.
cstamp
=
(
__u32
)(
TIME_DELTA
(
ifmca
->
mca_cstamp
,
INITIAL_JIFFIES
)
/
HZ
*
100
+
TIME_DELTA
(
ifmca
->
mca_cstamp
,
INITIAL_JIFFIES
)
%
HZ
*
100
/
HZ
);
ci
.
tstamp
=
(
__u32
)(
TIME_DELTA
(
ifmca
->
mca_tstamp
,
INITIAL_JIFFIES
)
/
HZ
*
100
+
TIME_DELTA
(
ifmca
->
mca_tstamp
,
INITIAL_JIFFIES
)
%
HZ
*
100
/
HZ
);
ci
.
ifa_prefered
=
INFINITY_LIFE_TIME
;
ci
.
ifa_valid
=
INFINITY_LIFE_TIME
;
RTA_PUT
(
skb
,
IFA_CACHEINFO
,
sizeof
(
ci
),
&
ci
);
nlh
->
nlmsg_len
=
skb
->
tail
-
b
;
return
skb
->
len
;
nlmsg_failure:
rtattr_failure:
skb_trim
(
skb
,
b
-
skb
->
data
);
return
-
1
;
}
static
int
inet6_fill_ifacaddr
(
struct
sk_buff
*
skb
,
struct
ifacaddr6
*
ifaca
,
u32
pid
,
u32
seq
,
int
event
)
{
struct
ifaddrmsg
*
ifm
;
struct
nlmsghdr
*
nlh
;
struct
ifa_cacheinfo
ci
;
unsigned
char
*
b
=
skb
->
tail
;
nlh
=
NLMSG_PUT
(
skb
,
pid
,
seq
,
event
,
sizeof
(
*
ifm
));
if
(
pid
)
nlh
->
nlmsg_flags
|=
NLM_F_MULTI
;
ifm
=
NLMSG_DATA
(
nlh
);
ifm
->
ifa_family
=
AF_INET6
;
ifm
->
ifa_prefixlen
=
128
;
ifm
->
ifa_flags
=
IFA_F_PERMANENT
;
ifm
->
ifa_scope
=
RT_SCOPE_UNIVERSE
;
if
(
ipv6_addr_scope
(
&
ifaca
->
aca_addr
)
&
IFA_SITE
)
ifm
->
ifa_scope
=
RT_SCOPE_SITE
;
ifm
->
ifa_index
=
ifaca
->
aca_idev
->
dev
->
ifindex
;
RTA_PUT
(
skb
,
IFA_ADDRESS
,
16
,
&
ifaca
->
aca_addr
);
ci
.
cstamp
=
(
__u32
)(
TIME_DELTA
(
ifaca
->
aca_cstamp
,
INITIAL_JIFFIES
)
/
HZ
*
100
+
TIME_DELTA
(
ifaca
->
aca_cstamp
,
INITIAL_JIFFIES
)
%
HZ
*
100
/
HZ
);
ci
.
tstamp
=
(
__u32
)(
TIME_DELTA
(
ifaca
->
aca_tstamp
,
INITIAL_JIFFIES
)
/
HZ
*
100
+
TIME_DELTA
(
ifaca
->
aca_tstamp
,
INITIAL_JIFFIES
)
%
HZ
*
100
/
HZ
);
ci
.
ifa_prefered
=
INFINITY_LIFE_TIME
;
ci
.
ifa_valid
=
INFINITY_LIFE_TIME
;
RTA_PUT
(
skb
,
IFA_CACHEINFO
,
sizeof
(
ci
),
&
ci
);
nlh
->
nlmsg_len
=
skb
->
tail
-
b
;
return
skb
->
len
;
nlmsg_failure:
rtattr_failure:
skb_trim
(
skb
,
b
-
skb
->
data
);
return
-
1
;
}
static
int
inet6_dump_ifaddr
(
struct
sk_buff
*
skb
,
struct
netlink_callback
*
cb
)
static
int
inet6_dump_ifaddr
(
struct
sk_buff
*
skb
,
struct
netlink_callback
*
cb
)
{
{
int
idx
,
ip_idx
;
int
idx
,
ip_idx
;
...
@@ -2635,8 +2561,6 @@ static int inet6_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb)
...
@@ -2635,8 +2561,6 @@ static int inet6_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb)
struct
net_device
*
dev
;
struct
net_device
*
dev
;
struct
inet6_dev
*
idev
=
NULL
;
struct
inet6_dev
*
idev
=
NULL
;
struct
inet6_ifaddr
*
ifa
;
struct
inet6_ifaddr
*
ifa
;
struct
ifmcaddr6
*
ifmca
;
struct
ifacaddr6
*
ifaca
;
s_idx
=
cb
->
args
[
0
];
s_idx
=
cb
->
args
[
0
];
s_ip_idx
=
ip_idx
=
cb
->
args
[
1
];
s_ip_idx
=
ip_idx
=
cb
->
args
[
1
];
...
...
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