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
ca77d319
Commit
ca77d319
authored
Oct 24, 2002
by
Alexey Kuznetsov
Committed by
Hideaki Yoshifuji
Oct 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Kill ip_send, use dst_output instead.
parent
29cdd1db
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
48 deletions
+4
-48
include/net/ip.h
include/net/ip.h
+0
-8
include/net/ipip.h
include/net/ipip.h
+1
-1
net/ipv4/ip_forward.c
net/ipv4/ip_forward.c
+3
-20
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+0
-6
net/ipv4/ipip.c
net/ipv4/ipip.c
+0
-6
net/ipv6/sit.c
net/ipv6/sit.c
+0
-7
No files found.
include/net/ip.h
View file @
ca77d319
...
...
@@ -162,14 +162,6 @@ extern int sysctl_local_port_range[2];
extern
int
sysctl_ip_default_ttl
;
#ifdef CONFIG_INET
static
inline
int
ip_send
(
struct
sk_buff
*
skb
)
{
if
(
skb
->
len
>
skb
->
dst
->
pmtu
)
return
ip_fragment
(
skb
,
ip_finish_output
);
else
return
ip_finish_output
(
skb
);
}
/* The function in 2.2 was invalid, producing wrong result for
* check=0xFEFF. It was noticed by Arthur Skawina _year_ ago. --ANK(000625) */
static
inline
...
...
include/net/ipip.h
View file @
ca77d319
...
...
@@ -34,7 +34,7 @@ struct ip_tunnel
ip_select_ident(iph, &rt->u.dst, NULL); \
ip_send_check(iph); \
\
err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, d
o_ip_send);
\
err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, d
st_output);
\
if (err == NET_XMIT_SUCCESS || err == NET_XMIT_CN) { \
stats->tx_bytes += pkt_len; \
stats->tx_packets++; \
...
...
net/ipv4/ip_forward.c
View file @
ca77d319
...
...
@@ -47,27 +47,10 @@ static inline int ip_forward_finish(struct sk_buff *skb)
IP_INC_STATS_BH
(
IpForwDatagrams
);
if
(
opt
->
optlen
==
0
)
{
#ifdef CONFIG_NET_FASTROUTE
struct
rtable
*
rt
=
(
struct
rtable
*
)
skb
->
dst
;
if
(
unlikely
(
opt
->
optlen
))
ip_forward_options
(
skb
);
if
(
rt
->
rt_flags
&
RTCF_FAST
&&
!
netdev_fastroute_obstacles
)
{
struct
dst_entry
*
old_dst
;
unsigned
h
=
((
*
(
u8
*
)
&
rt
->
fl
.
fl4_dst
)
^
(
*
(
u8
*
)
&
rt
->
fl
.
fl4_src
))
&
NETDEV_FASTROUTE_HMASK
;
write_lock_irq
(
&
skb
->
dev
->
fastpath_lock
);
old_dst
=
skb
->
dev
->
fastpath
[
h
];
skb
->
dev
->
fastpath
[
h
]
=
dst_clone
(
&
rt
->
u
.
dst
);
write_unlock_irq
(
&
skb
->
dev
->
fastpath_lock
);
dst_release
(
old_dst
);
}
#endif
return
(
ip_send
(
skb
));
}
ip_forward_options
(
skb
);
return
(
ip_send
(
skb
));
return
dst_output
(
skb
);
}
int
ip_forward
(
struct
sk_buff
*
skb
)
...
...
net/ipv4/ip_gre.c
View file @
ca77d319
...
...
@@ -675,12 +675,6 @@ int ipgre_rcv(struct sk_buff *skb)
return
(
0
);
}
/* Need this wrapper because NF_HOOK takes the function address */
static
inline
int
do_ip_send
(
struct
sk_buff
*
skb
)
{
return
ip_send
(
skb
);
}
static
int
ipgre_tunnel_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
struct
ip_tunnel
*
tunnel
=
(
struct
ip_tunnel
*
)
dev
->
priv
;
...
...
net/ipv4/ipip.c
View file @
ca77d319
...
...
@@ -521,12 +521,6 @@ int ipip_rcv(struct sk_buff *skb)
return
0
;
}
/* Need this wrapper because NF_HOOK takes the function address */
static
inline
int
do_ip_send
(
struct
sk_buff
*
skb
)
{
return
ip_send
(
skb
);
}
/*
* This function assumes it is being called from dev_queue_xmit()
* and that skb is filled properly by that function.
...
...
net/ipv6/sit.c
View file @
ca77d319
...
...
@@ -423,13 +423,6 @@ static int ipip6_rcv(struct sk_buff *skb)
return
0
;
}
/* Need this wrapper because NF_HOOK takes the function address */
static
inline
int
do_ip_send
(
struct
sk_buff
*
skb
)
{
return
ip_send
(
skb
);
}
/* Returns the embedded IPv4 address if the IPv6 address
comes from 6to4 (draft-ietf-ngtrans-6to4-04) addr space */
...
...
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