android_kernel_samsung_msm8976/net
Cong Wang 773a447344 ipv4, fib: pass LOOPBACK_IFINDEX instead of 0 to flowi4_iif
As suggested by Julian:

	Simply, flowi4_iif must not contain 0, it does not
	look logical to ignore all ip rules with specified iif.

because in fib_rule_match() we do:

        if (rule->iifindex && (rule->iifindex != fl->flowi_iif))
                goto out;

flowi4_iif should be LOOPBACK_IFINDEX by default.

We need to move LOOPBACK_IFINDEX to include/net/flow.h:

1) It is mostly used by flowi_iif

2) Fix the following compile error if we use it in flow.h
by the patches latter:

In file included from include/linux/netfilter.h:277:0,
                 from include/net/netns/netfilter.h:5,
                 from include/net/net_namespace.h:21,
                 from include/linux/netdevice.h:43,
                 from include/linux/icmpv6.h:12,
                 from include/linux/ipv6.h:61,
                 from include/net/ipv6.h:16,
                 from include/linux/sunrpc/clnt.h:27,
                 from include/linux/nfs_fs.h:30,
                 from init/do_mounts.c:32:
include/net/flow.h: In function ‘flowi4_init_output’:
include/net/flow.h:84:32: error: ‘LOOPBACK_IFINDEX’ undeclared (first use in this function)

[Backport of net-next 6a662719c9868b3d6c7d26b3a085f0cd3cc15e64]

Change-Id: Ib7a0a08d78c03800488afa1b2c170cb70e34cfd9
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Julian Anastasov <ja@ssi.bg>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Git-commit: 9c086b4cf266e9ac1afabb86ff9ef54407b344e2
Git-repo: https://android.googlesource.com/kernel/common.git
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2015-09-16 18:20:08 +05:30
..
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth Bluetooth: Release locks before sleeping for L2CAP socket shutdown 2015-04-30 22:01:31 +05:30
bridge This is the 3.10.67 stable release 2015-04-24 18:04:40 -07:00
caif This is the 3.10.73 stable release 2015-04-24 18:14:57 -07:00
can can: add missing initialisations in CAN related skbuffs 2015-03-26 15:00:58 +01:00
ceph libceph: fix double __remove_osd() problem 2015-03-06 14:40:54 -08:00
core Merge commit 'dadb5b3343b1e8b96f68a396f3627a43ed8bb25e' into remote branch. 2015-08-04 16:32:17 +05:30
dcb
dccp
decnet
dns_resolver
dsa
ethernet
ieee802154
ipc_router Merge "Merge c9f748c828 on remote branch" 2015-07-29 05:11:23 -07:00
ipv4 ipv4, fib: pass LOOPBACK_IFINDEX instead of 0 to flowi4_iif 2015-09-16 18:20:08 +05:30
ipv6 ipv4, fib: pass LOOPBACK_IFINDEX instead of 0 to flowi4_iif 2015-09-16 18:20:08 +05:30
ipx
irda net: irda: fix wait_until_sent poll timeout 2015-03-18 13:22:31 +01:00
iucv
key
l2tp
lapb
llc
mac80211 cfg80211: Convert del_station() callback to use a param struct 2015-08-20 13:41:49 +05:30
mac802154
netfilter Netfilter: IRC DCC fixes 2015-06-19 14:38:50 +05:30
netlabel
netlink This is the 3.10.67 stable release 2015-04-24 18:04:40 -07:00
netrom
nfc
openvswitch
packet This is the 3.10.67 stable release 2015-04-24 18:04:40 -07:00
phonet
rds This is the 3.10.73 stable release 2015-04-24 18:14:57 -07:00
rfkill
rmnet_data net: rmnet_data: Add support for MAPv4 data format 2015-09-04 15:13:02 -07:00
rose
rxrpc This is the 3.10.73 stable release 2015-04-24 18:14:57 -07:00
sched This is the 3.10.73 stable release 2015-04-24 18:14:57 -07:00
sctp This is the 3.10.73 stable release 2015-04-24 18:14:57 -07:00
sunrpc This is the 3.10.73 stable release 2015-04-24 18:14:57 -07:00
tipc
unix
vmw_vsock
wimax
wireless cfg80211: Specify frame and reason code for NL80211_CMD_DEL_STATION 2015-08-20 13:47:39 +05:30
x25
xfrm
Kconfig
Makefile
activity_stats.c
compat.c net: compat: Update get_compat_msghdr() to match copy_msghdr_from_user() behaviour 2015-03-26 15:00:56 +01:00
nonet.c
socket.c
sysctl_net.c