|
@@ -174,6 +174,7 @@ static int icmp_filter(const struct sock *sk, const struct sk_buff *skb)
|
|
|
static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash)
|
|
static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash)
|
|
|
{
|
|
{
|
|
|
int sdif = inet_sdif(skb);
|
|
int sdif = inet_sdif(skb);
|
|
|
|
|
+ int dif = inet_iif(skb);
|
|
|
struct sock *sk;
|
|
struct sock *sk;
|
|
|
struct hlist_head *head;
|
|
struct hlist_head *head;
|
|
|
int delivered = 0;
|
|
int delivered = 0;
|
|
@@ -186,8 +187,7 @@ static int raw_v4_input(struct sk_buff *skb, const struct iphdr *iph, int hash)
|
|
|
|
|
|
|
|
net = dev_net(skb->dev);
|
|
net = dev_net(skb->dev);
|
|
|
sk = __raw_v4_lookup(net, __sk_head(head), iph->protocol,
|
|
sk = __raw_v4_lookup(net, __sk_head(head), iph->protocol,
|
|
|
- iph->saddr, iph->daddr,
|
|
|
|
|
- skb->dev->ifindex, sdif);
|
|
|
|
|
|
|
+ iph->saddr, iph->daddr, dif, sdif);
|
|
|
|
|
|
|
|
while (sk) {
|
|
while (sk) {
|
|
|
delivered = 1;
|
|
delivered = 1;
|