[IPv4] route: Convert route notifications to use rtnl_notify()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipv6 / datagram.c
index 99a6eb23378bcc2d3b079ce3bc5ff7efd8e9ff58..c73508e090a647f60b449c490dc9b9f51586bcb6 100644 (file)
@@ -156,6 +156,8 @@ ipv4_connected:
        if (!fl.oif && (addr_type&IPV6_ADDR_MULTICAST))
                fl.oif = np->mcast_oif;
 
+       security_sk_classify_flow(sk, &fl);
+
        if (flowlabel) {
                if (flowlabel->opt && flowlabel->opt->srcrt) {
                        struct rt0_hdr *rt0 = (struct rt0_hdr *) flowlabel->opt->srcrt;
@@ -696,7 +698,7 @@ int datagram_send_ctl(struct msghdr *msg, struct flowi *fl,
                        }
 
                        tc = *(int *)CMSG_DATA(cmsg);
-                       if (tc < 0 || tc > 0xff)
+                       if (tc < -1 || tc > 0xff)
                                goto exit_f;
 
                        err = 0;