]> git.neil.brown.name Git - history.git/commitdiff
[IPV6]: Set fl->proto in _decode_sesseion6.
authorDavid S. Miller <davem@nuts.ninka.net>
Tue, 21 Oct 2003 19:23:04 +0000 (12:23 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Tue, 21 Oct 2003 19:23:04 +0000 (12:23 -0700)
net/ipv6/xfrm6_policy.c

index 14def8d2e503d7868c8b3fd1ed30a1e02d89856f..ef4fca0306a2993271ca0fb7703b300e446cc67d 100644 (file)
@@ -219,6 +219,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl)
                                fl->fl_ip_sport = ports[0];
                                fl->fl_ip_dport = ports[1];
                        }
+                       fl->proto = nexthdr;
                        return;
 
                /* XXX Why are there these headers? */
@@ -227,6 +228,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl)
                case IPPROTO_COMP:
                default:
                        fl->fl_ipsec_spi = 0;
+                       fl->proto = nexthdr;
                        return;
                };
        }