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
8f8495e9
Commit
8f8495e9
authored
Apr 28, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
c2f15366
0438a0e2
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
201 additions
and
171 deletions
+201
-171
net/core/dst.c
net/core/dst.c
+1
-3
net/core/link_watch.c
net/core/link_watch.c
+2
-2
net/core/neighbour.c
net/core/neighbour.c
+89
-89
net/core/pktgen.c
net/core/pktgen.c
+3
-3
net/core/profile.c
net/core/profile.c
+3
-1
net/decnet/af_decnet.c
net/decnet/af_decnet.c
+10
-17
net/ipv4/fib_semantics.c
net/ipv4/fib_semantics.c
+53
-14
net/ipv4/ip_output.c
net/ipv4/ip_output.c
+1
-1
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+4
-4
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_minisocks.c
+3
-3
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+32
-34
No files found.
net/core/dst.c
View file @
8f8495e9
...
...
@@ -252,9 +252,7 @@ static int dst_dev_event(struct notifier_block *this, unsigned long event, void
}
struct
notifier_block
dst_dev_notifier
=
{
dst_dev_event
,
NULL
,
0
.
notifier_call
=
dst_dev_event
,
};
void
__init
dst_init
(
void
)
...
...
net/core/link_watch.c
View file @
8f8495e9
...
...
@@ -30,8 +30,8 @@ enum lw_bits {
LW_SE_USED
};
static
unsigned
long
linkwatch_flags
=
0
;
static
unsigned
long
linkwatch_nextevent
=
0
;
static
unsigned
long
linkwatch_flags
;
static
unsigned
long
linkwatch_nextevent
;
static
void
linkwatch_event
(
void
*
dummy
);
static
DECLARE_WORK
(
linkwatch_work
,
linkwatch_event
,
NULL
);
...
...
net/core/neighbour.c
View file @
8f8495e9
...
...
@@ -1477,112 +1477,112 @@ struct neigh_sysctl_table {
.
procname
=
"mcast_solicit"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_UCAST_SOLICIT
,
.
procname
=
"ucast_solicit"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_APP_SOLICIT
,
.
procname
=
"app_solicit"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_RETRANS_TIME
,
.
procname
=
"retrans_time"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_REACHABLE_TIME
,
.
procname
=
"base_reachable_time"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
},
{
.
ctl_name
=
NET_NEIGH_DELAY_PROBE_TIME
,
.
procname
=
"delay_first_probe_time"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
},
{
.
ctl_name
=
NET_NEIGH_GC_STALE_TIME
,
.
procname
=
"gc_stale_time"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
},
{
.
ctl_name
=
NET_NEIGH_UNRES_QLEN
,
.
procname
=
"unres_qlen"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_PROXY_QLEN
,
.
procname
=
"proxy_qlen"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_ANYCAST_DELAY
,
.
procname
=
"anycast_delay"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_PROXY_DELAY
,
.
procname
=
"proxy_delay"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_LOCKTIME
,
.
procname
=
"locktime"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_GC_INTERVAL
,
.
procname
=
"gc_interval"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
.
proc_handler
=
&
proc_dointvec_jiffies
,
},
{
.
ctl_name
=
NET_NEIGH_GC_THRESH1
,
.
procname
=
"gc_thresh1"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_GC_THRESH2
,
.
procname
=
"gc_thresh2"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_NEIGH_GC_THRESH3
,
.
procname
=
"gc_thresh3"
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
proc_handler
=
&
proc_dointvec
,
},
},
.
neigh_dev
=
{
...
...
net/core/pktgen.c
View file @
8f8495e9
...
...
@@ -198,8 +198,8 @@ static int debug;
/* Module parameters, defaults. */
static
int
count_d
=
100000
;
static
int
ipg_d
=
0
;
static
int
clone_skb_d
=
0
;
static
int
ipg_d
;
static
int
clone_skb_d
;
#define MAX_PKTGEN 8
...
...
@@ -220,7 +220,7 @@ static inline __u64 getCurMs(void) {
}
#define PG_PROC_DIR "pktgen"
static
struct
proc_dir_entry
*
proc_dir
=
0
;
static
struct
proc_dir_entry
*
proc_dir
;
static
struct
net_device
*
setup_inject
(
struct
pktgen_info
*
info
)
{
...
...
net/core/profile.c
View file @
8f8495e9
...
...
@@ -160,7 +160,9 @@ static struct timer_list whitehole_timer =
TIMER_INITIALIZER
(
whitehole_inject
,
0
,
0
);
static
struct
net_device
whitehole_dev
=
{
"whitehole"
,
0x0
,
0x0
,
0x0
,
0x0
,
0
,
0
,
0
,
0
,
0
,
NULL
,
whitehole_init
,
};
.
name
=
"whitehole"
,
.
init
=
whitehole_init
,
};
static
int
whitehole_open
(
struct
net_device
*
dev
)
{
...
...
net/decnet/af_decnet.c
View file @
8f8495e9
...
...
@@ -469,24 +469,21 @@ static void dn_destruct(struct sock *sk)
skb_queue_purge
(
&
scp
->
other_receive_queue
);
dst_release
(
xchg
(
&
sk
->
dst_cache
,
NULL
));
MOD_DEC_USE_COUNT
;
}
struct
sock
*
dn_alloc_sock
(
struct
socket
*
sock
,
int
gfp
)
{
struct
sock
*
sk
;
struct
dn_scp
*
scp
;
struct
sock
*
sk
=
sk_alloc
(
PF_DECnet
,
gfp
,
sizeof
(
struct
dn_sock
),
dn_sk_cachep
);
if
(
(
sk
=
sk_alloc
(
PF_DECnet
,
gfp
,
sizeof
(
struct
dn_sock
),
dn_sk_cachep
))
==
NULL
)
goto
no_sock
;
if
(
!
sk
)
goto
out
;
scp
=
(
struct
dn_scp
*
)(
sk
+
1
);
DN_SK
(
sk
)
=
scp
;
DN_SK
(
sk
)
=
scp
=
(
struct
dn_scp
*
)(
sk
+
1
);
if
(
sock
)
{
if
(
sock
)
sock
->
ops
=
&
dn_proto_ops
;
}
sock_init_data
(
sock
,
sk
);
sk
->
backlog_rcv
=
dn_nsp_backlog_rcv
;
...
...
@@ -543,13 +540,8 @@ struct sock *dn_alloc_sock(struct socket *sock, int gfp)
scp
->
delack_fxn
=
dn_nsp_delayed_ack
;
dn_start_slow_timer
(
sk
);
MOD_INC_USE_COUNT
;
out:
return
sk
;
no_sock:
return
NULL
;
}
/*
...
...
@@ -2238,6 +2230,7 @@ static int dn_get_info(char *buffer, char **start, off_t offset, int length)
static
struct
net_proto_family
dn_family_ops
=
{
.
family
=
AF_DECnet
,
.
create
=
dn_create
,
.
owner
=
THIS_MODULE
,
};
static
struct
proto_ops
dn_proto_ops
=
{
...
...
@@ -2304,7 +2297,7 @@ static int __init decnet_init(void)
* Requires an audit of the code to check for memory leaks and
* initialisation problems etc.
*/
MOD_INC_USE_COUNT
;
try_module_get
(
THIS_MODULE
)
;
return
0
;
...
...
net/ipv4/fib_semantics.c
View file @
8f8495e9
...
...
@@ -83,23 +83,62 @@ static struct
{
int
error
;
u8
scope
;
}
fib_props
[
RTA_MAX
+
1
]
=
{
{
0
,
RT_SCOPE_NOWHERE
},
/* RTN_UNSPEC */
{
0
,
RT_SCOPE_UNIVERSE
},
/* RTN_UNICAST */
{
0
,
RT_SCOPE_HOST
},
/* RTN_LOCAL */
{
0
,
RT_SCOPE_LINK
},
/* RTN_BROADCAST */
{
0
,
RT_SCOPE_LINK
},
/* RTN_ANYCAST */
{
0
,
RT_SCOPE_UNIVERSE
},
/* RTN_MULTICAST */
{
-
EINVAL
,
RT_SCOPE_UNIVERSE
},
/* RTN_BLACKHOLE */
{
-
EHOSTUNREACH
,
RT_SCOPE_UNIVERSE
},
/* RTN_UNREACHABLE */
{
-
EACCES
,
RT_SCOPE_UNIVERSE
},
/* RTN_PROHIBIT */
{
-
EAGAIN
,
RT_SCOPE_UNIVERSE
},
/* RTN_THROW */
}
fib_props
[
RTA_MAX
+
1
]
=
{
{
.
error
=
0
,
.
scope
=
RT_SCOPE_NOWHERE
,
},
/* RTN_UNSPEC */
{
.
error
=
0
,
.
scope
=
RT_SCOPE_UNIVERSE
,
},
/* RTN_UNICAST */
{
.
error
=
0
,
.
scope
=
RT_SCOPE_HOST
,
},
/* RTN_LOCAL */
{
.
error
=
0
,
.
scope
=
RT_SCOPE_LINK
,
},
/* RTN_BROADCAST */
{
.
error
=
0
,
.
scope
=
RT_SCOPE_LINK
,
},
/* RTN_ANYCAST */
{
.
error
=
0
,
.
scope
=
RT_SCOPE_UNIVERSE
,
},
/* RTN_MULTICAST */
{
.
error
=
-
EINVAL
,
.
scope
=
RT_SCOPE_UNIVERSE
,
},
/* RTN_BLACKHOLE */
{
.
error
=
-
EHOSTUNREACH
,
.
scope
=
RT_SCOPE_UNIVERSE
,
},
/* RTN_UNREACHABLE */
{
.
error
=
-
EACCES
,
.
scope
=
RT_SCOPE_UNIVERSE
,
},
/* RTN_PROHIBIT */
{
.
error
=
-
EAGAIN
,
.
scope
=
RT_SCOPE_UNIVERSE
,
},
/* RTN_THROW */
#ifdef CONFIG_IP_ROUTE_NAT
{
0
,
RT_SCOPE_HOST
},
/* RTN_NAT */
{
.
error
=
0
,
.
scope
=
RT_SCOPE_HOST
,
},
/* RTN_NAT */
#else
{
-
EINVAL
,
RT_SCOPE_NOWHERE
},
/* RTN_NAT */
{
.
error
=
-
EINVAL
,
.
scope
=
RT_SCOPE_NOWHERE
,
},
/* RTN_NAT */
#endif
{
-
EINVAL
,
RT_SCOPE_NOWHERE
}
/* RTN_XRESOLVE */
{
.
error
=
-
EINVAL
,
.
scope
=
RT_SCOPE_NOWHERE
,
},
/* RTN_XRESOLVE */
};
...
...
net/ipv4/ip_output.c
View file @
8f8495e9
...
...
@@ -86,7 +86,7 @@
* Shall we try to damage output packets if routing dev changes?
*/
int
sysctl_ip_dynaddr
=
0
;
int
sysctl_ip_dynaddr
;
int
sysctl_ip_default_ttl
=
IPDEFTTL
;
/* Generate a checksum for an outgoing IP datagram. */
...
...
net/ipv4/tcp_input.c
View file @
8f8495e9
...
...
@@ -78,16 +78,16 @@ int sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
#ifdef CONFIG_INET_ECN
int
sysctl_tcp_ecn
=
1
;
#else
int
sysctl_tcp_ecn
=
0
;
int
sysctl_tcp_ecn
;
#endif
int
sysctl_tcp_dsack
=
1
;
int
sysctl_tcp_app_win
=
31
;
int
sysctl_tcp_adv_win_scale
=
2
;
int
sysctl_tcp_stdurg
=
0
;
int
sysctl_tcp_rfc1337
=
0
;
int
sysctl_tcp_stdurg
;
int
sysctl_tcp_rfc1337
;
int
sysctl_tcp_max_orphans
=
NR_FILE
;
int
sysctl_tcp_frto
=
0
;
int
sysctl_tcp_frto
;
#define FLAG_DATA 0x01
/* Incoming frame contained data. */
#define FLAG_WIN_UPDATE 0x02
/* Incoming ACK was a window update. */
...
...
net/ipv4/tcp_minisocks.c
View file @
8f8495e9
...
...
@@ -33,11 +33,11 @@
#define SYNC_INIT 1
#endif
int
sysctl_tcp_tw_recycle
=
0
;
int
sysctl_tcp_tw_recycle
;
int
sysctl_tcp_max_tw_buckets
=
NR_FILE
*
2
;
int
sysctl_tcp_syncookies
=
SYNC_INIT
;
int
sysctl_tcp_abort_on_overflow
=
0
;
int
sysctl_tcp_abort_on_overflow
;
static
__inline__
int
tcp_in_window
(
u32
seq
,
u32
end_seq
,
u32
s_win
,
u32
e_win
)
{
...
...
@@ -50,7 +50,7 @@ static __inline__ int tcp_in_window(u32 seq, u32 end_seq, u32 s_win, u32 e_win)
/* New-style handling of TIME_WAIT sockets. */
int
tcp_tw_count
=
0
;
int
tcp_tw_count
;
/* Must be called with locally disabled BHs. */
...
...
net/ipv6/addrconf.c
View file @
8f8495e9
...
...
@@ -132,18 +132,17 @@ static int ipv6_chk_same_addr(const struct in6_addr *addr, struct net_device *de
static
struct
notifier_block
*
inet6addr_chain
;
struct
ipv6_devconf
ipv6_devconf
=
{
0
,
/* forwarding */
IPV6_DEFAULT_HOPLIMIT
,
/* hop limit */
IPV6_MIN_MTU
,
/* mtu */
1
,
/* accept RAs */
1
,
/* accept redirects */
1
,
/* autoconfiguration */
1
,
/* dad transmits */
MAX_RTR_SOLICITATIONS
,
/* router solicits */
RTR_SOLICITATION_INTERVAL
,
/* rtr solicit interval */
MAX_RTR_SOLICITATION_DELAY
,
/* rtr solicit delay */
struct
ipv6_devconf
ipv6_devconf
=
{
.
forwarding
=
0
,
.
hop_limit
=
IPV6_DEFAULT_HOPLIMIT
,
.
mtu6
=
IPV6_MIN_MTU
,
.
accept_ra
=
1
,
.
accept_redirects
=
1
,
.
autoconf
=
1
,
.
dad_transmits
=
1
,
.
rtr_solicits
=
MAX_RTR_SOLICITATIONS
,
.
rtr_solicit_interval
=
RTR_SOLICITATION_INTERVAL
,
.
rtr_solicit_delay
=
MAX_RTR_SOLICITATION_DELAY
,
#ifdef CONFIG_IPV6_PRIVACY
.
use_tempaddr
=
0
,
.
temp_valid_lft
=
TEMP_VALID_LIFETIME
,
...
...
@@ -153,18 +152,17 @@ struct ipv6_devconf ipv6_devconf =
#endif
};
static
struct
ipv6_devconf
ipv6_devconf_dflt
=
{
0
,
/* forwarding */
IPV6_DEFAULT_HOPLIMIT
,
/* hop limit */
IPV6_MIN_MTU
,
/* mtu */
1
,
/* accept RAs */
1
,
/* accept redirects */
1
,
/* autoconfiguration */
1
,
/* dad transmits */
MAX_RTR_SOLICITATIONS
,
/* router solicits */
RTR_SOLICITATION_INTERVAL
,
/* rtr solicit interval */
MAX_RTR_SOLICITATION_DELAY
,
/* rtr solicit delay */
static
struct
ipv6_devconf
ipv6_devconf_dflt
=
{
.
forwarding
=
0
,
.
hop_limit
=
IPV6_DEFAULT_HOPLIMIT
,
.
mtu6
=
IPV6_MIN_MTU
,
.
accept_ra
=
1
,
.
accept_redirects
=
1
,
.
autoconf
=
1
,
.
dad_transmits
=
1
,
.
rtr_solicits
=
MAX_RTR_SOLICITATIONS
,
.
rtr_solicit_interval
=
RTR_SOLICITATION_INTERVAL
,
.
rtr_solicit_delay
=
MAX_RTR_SOLICITATION_DELAY
,
#ifdef CONFIG_IPV6_PRIVACY
.
use_tempaddr
=
0
,
.
temp_valid_lft
=
TEMP_VALID_LIFETIME
,
...
...
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