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
85b980f3
Commit
85b980f3
authored
Jul 09, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/jmorris/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
6f42fbf8
cb3f027c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
12 deletions
+49
-12
drivers/net/ppp_generic.c
drivers/net/ppp_generic.c
+3
-3
drivers/net/sunhme.c
drivers/net/sunhme.c
+6
-0
include/net/tcp.h
include/net/tcp.h
+0
-7
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+6
-1
net/ipv4/ipip.c
net/ipv4/ipip.c
+6
-0
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+21
-0
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_tunnel.c
+1
-1
net/ipv6/sit.c
net/ipv6/sit.c
+6
-0
No files found.
drivers/net/ppp_generic.c
View file @
85b980f3
...
...
@@ -844,7 +844,7 @@ ppp_start_xmit(struct sk_buff *skb, struct net_device *dev)
if
(
ns
==
0
)
goto
outf
;
skb_reserve
(
ns
,
dev
->
hard_header_len
);
memcpy
(
skb_put
(
ns
,
skb
->
len
),
skb
->
data
,
skb
->
len
);
skb_copy_bits
(
skb
,
0
,
skb_put
(
ns
,
skb
->
len
)
,
skb
->
len
);
kfree_skb
(
skb
);
skb
=
ns
;
}
...
...
@@ -1455,7 +1455,7 @@ ppp_receive_nonmp_frame(struct ppp *ppp, struct sk_buff *skb)
goto
err
;
}
skb_reserve
(
ns
,
2
);
memcpy
(
skb_put
(
ns
,
skb
->
len
),
skb
->
data
,
skb
->
len
);
skb_copy_bits
(
skb
,
0
,
skb_put
(
ns
,
skb
->
len
)
,
skb
->
len
);
kfree_skb
(
skb
);
skb
=
ns
;
}
...
...
@@ -1826,7 +1826,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
if
(
head
!=
tail
)
/* copy to a single skb */
for
(
p
=
head
;
p
!=
tail
->
next
;
p
=
p
->
next
)
memcpy
(
skb_put
(
skb
,
p
->
len
),
p
->
data
,
p
->
len
);
skb_copy_bits
(
p
,
0
,
skb_put
(
skb
,
p
->
len
)
,
p
->
len
);
ppp
->
nextseq
=
tail
->
sequence
+
1
;
head
=
tail
->
next
;
}
...
...
drivers/net/sunhme.c
View file @
85b980f3
...
...
@@ -1521,6 +1521,12 @@ static int happy_meal_init(struct happy_meal *hp)
hme_write32
(
hp
,
bregs
+
BMAC_IGAP1
,
DEFAULT_IPG1
);
hme_write32
(
hp
,
bregs
+
BMAC_IGAP2
,
DEFAULT_IPG2
);
/* Make sure we can handle VLAN frames. */
hme_write32
(
hp
,
bregs
+
BMAC_TXMAX
,
ETH_DATA_LEN
+
ETH_HLEN
+
8
);
hme_write32
(
hp
,
bregs
+
BMAC_RXMAX
,
ETH_DATA_LEN
+
ETH_HLEN
+
8
);
/* Load up the MAC address and random seed. */
HMD
((
"rseed/macaddr, "
));
...
...
include/net/tcp.h
View file @
85b980f3
...
...
@@ -628,13 +628,6 @@ static inline void tcp_openreq_free(struct open_request *req)
/*
* Pointers to address related TCP functions
* (i.e. things that depend on the address family)
*
* BUGGG_FUTURE: all the idea behind this struct is wrong.
* It mixes socket frontend with transport function.
* With port sharing between IPv6/v4 it gives the only advantage,
* only poor IPv6 needs to permanently recheck, that it
* is still IPv6 8)8) It must be cleaned up as soon as possible.
* --ANK (980802)
*/
struct
tcp_func
{
...
...
net/ipv4/ip_gre.c
View file @
85b980f3
...
...
@@ -1153,7 +1153,9 @@ static int ipgre_tunnel_init(struct net_device *dev)
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
memcpy
(
dev
->
dev_addr
,
&
tunnel
->
parms
.
iph
.
saddr
,
4
);
memcpy
(
dev
->
broadcast
,
&
tunnel
->
parms
.
iph
.
daddr
,
4
);
...
...
@@ -1215,6 +1217,9 @@ int __init ipgre_fb_tunnel_init(struct net_device *dev)
struct
ip_tunnel
*
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
struct
iphdr
*
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
iph
->
version
=
4
;
iph
->
protocol
=
IPPROTO_GRE
;
iph
->
ihl
=
5
;
...
...
net/ipv4/ipip.c
View file @
85b980f3
...
...
@@ -805,7 +805,10 @@ static int ipip_tunnel_init(struct net_device *dev)
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
memcpy
(
dev
->
dev_addr
,
&
tunnel
->
parms
.
iph
.
saddr
,
4
);
memcpy
(
dev
->
broadcast
,
&
tunnel
->
parms
.
iph
.
daddr
,
4
);
...
...
@@ -841,6 +844,9 @@ static int __init ipip_fb_tunnel_init(struct net_device *dev)
struct
ip_tunnel
*
tunnel
=
dev
->
priv
;
struct
iphdr
*
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
iph
->
version
=
4
;
iph
->
protocol
=
IPPROTO_IPIP
;
iph
->
ihl
=
5
;
...
...
net/ipv4/tcp_input.c
View file @
85b980f3
...
...
@@ -3693,7 +3693,17 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,
tcp_sync_mss
(
sk
,
tp
->
pmtu_cookie
);
tcp_initialize_rcv_mss
(
sk
);
/* Make sure socket is routed, for correct metrics. */
tp
->
af_specific
->
rebuild_header
(
sk
);
tcp_init_metrics
(
sk
);
/* Prevent spurious tcp_cwnd_restart() on first data
* packet.
*/
tp
->
lsndtime
=
tcp_time_stamp
;
tcp_init_buffer_space
(
sk
);
if
(
sock_flag
(
sk
,
SOCK_KEEPOPEN
))
...
...
@@ -3959,7 +3969,18 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
if
(
tp
->
tstamp_ok
)
tp
->
advmss
-=
TCPOLEN_TSTAMP_ALIGNED
;
/* Make sure socket is routed, for
* correct metrics.
*/
tp
->
af_specific
->
rebuild_header
(
sk
);
tcp_init_metrics
(
sk
);
/* Prevent spurious tcp_cwnd_restart() on
* first data packet.
*/
tp
->
lsndtime
=
tcp_time_stamp
;
tcp_initialize_rcv_mss
(
sk
);
tcp_init_buffer_space
(
sk
);
tcp_fast_path_on
(
tp
);
...
...
net/ipv6/ip6_tunnel.c
View file @
85b980f3
...
...
@@ -506,7 +506,7 @@ void ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
icmpv6_send
(
skb2
,
rel_type
,
rel_code
,
rel_info
,
skb2
->
dev
);
if
(
rt
)
dst_
fre
e
(
&
rt
->
u
.
dst
);
dst_
releas
e
(
&
rt
->
u
.
dst
);
kfree_skb
(
skb2
);
}
...
...
net/ipv6/sit.c
View file @
85b980f3
...
...
@@ -743,7 +743,10 @@ static int ipip6_tunnel_init(struct net_device *dev)
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
memcpy
(
dev
->
dev_addr
,
&
tunnel
->
parms
.
iph
.
saddr
,
4
);
memcpy
(
dev
->
broadcast
,
&
tunnel
->
parms
.
iph
.
daddr
,
4
);
...
...
@@ -780,6 +783,9 @@ int __init ipip6_fb_tunnel_init(struct net_device *dev)
struct
ip_tunnel
*
tunnel
=
dev
->
priv
;
struct
iphdr
*
iph
=
&
tunnel
->
parms
.
iph
;
tunnel
->
dev
=
dev
;
strcpy
(
tunnel
->
parms
.
name
,
dev
->
name
);
iph
->
version
=
4
;
iph
->
protocol
=
IPPROTO_IPV6
;
iph
->
ihl
=
5
;
...
...
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