projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NETFILTER]: Introduce NF_INET_ hook values
[deliverable/linux.git]
/
net
/
ipv4
/
netfilter.c
diff --git
a/net/ipv4/netfilter.c
b/net/ipv4/netfilter.c
index 5539debf49735de2ea50105b507139ed1d35799d..d9022467e08951a4764e4f707bbf4403d25e42f5 100644
(file)
--- a/
net/ipv4/netfilter.c
+++ b/
net/ipv4/netfilter.c
@@
-23,7
+23,7
@@
int ip_route_me_harder(struct sk_buff *skb, unsigned addr_type)
addr_type = type;
/* some non-standard hacks like ipt_REJECT.c:send_reset() can cause
addr_type = type;
/* some non-standard hacks like ipt_REJECT.c:send_reset() can cause
- * packets with foreign saddr to appear on the NF_I
P
_LOCAL_OUT hook.
+ * packets with foreign saddr to appear on the NF_I
NET
_LOCAL_OUT hook.
*/
if (addr_type == RTN_LOCAL) {
fl.nl_u.ip4_u.daddr = iph->daddr;
*/
if (addr_type == RTN_LOCAL) {
fl.nl_u.ip4_u.daddr = iph->daddr;
@@
-126,7
+126,7
@@
static void nf_ip_saveroute(const struct sk_buff *skb, struct nf_info *info)
{
struct ip_rt_info *rt_info = nf_info_reroute(info);
{
struct ip_rt_info *rt_info = nf_info_reroute(info);
- if (info->hook == NF_I
P
_LOCAL_OUT) {
+ if (info->hook == NF_I
NET
_LOCAL_OUT) {
const struct iphdr *iph = ip_hdr(skb);
rt_info->tos = iph->tos;
const struct iphdr *iph = ip_hdr(skb);
rt_info->tos = iph->tos;
@@
-139,7
+139,7
@@
static int nf_ip_reroute(struct sk_buff *skb, const struct nf_info *info)
{
const struct ip_rt_info *rt_info = nf_info_reroute(info);
{
const struct ip_rt_info *rt_info = nf_info_reroute(info);
- if (info->hook == NF_I
P
_LOCAL_OUT) {
+ if (info->hook == NF_I
NET
_LOCAL_OUT) {
const struct iphdr *iph = ip_hdr(skb);
if (!(iph->tos == rt_info->tos
const struct iphdr *iph = ip_hdr(skb);
if (!(iph->tos == rt_info->tos
@@
-158,7
+158,7
@@
__sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
switch (skb->ip_summed) {
case CHECKSUM_COMPLETE:
switch (skb->ip_summed) {
case CHECKSUM_COMPLETE:
- if (hook != NF_I
P_PRE_ROUTING && hook != NF_IP
_LOCAL_IN)
+ if (hook != NF_I
NET_PRE_ROUTING && hook != NF_INET
_LOCAL_IN)
break;
if ((protocol == 0 && !csum_fold(skb->csum)) ||
!csum_tcpudp_magic(iph->saddr, iph->daddr,
break;
if ((protocol == 0 && !csum_fold(skb->csum)) ||
!csum_tcpudp_magic(iph->saddr, iph->daddr,
This page took
0.027642 seconds
and
5
git commands to generate.