#include <net/neighbour.h>
 #include <net/dst.h>
 #include <net/fib_rules.h>
+#include <net/tcp.h>
 #include <net/dn.h>
 #include <net/dn_nsp.h>
 #include <net/dn_dev.h>
        case DSO_NODELAY:
                if (optlen != sizeof(int))
                        return -EINVAL;
-               if (scp->nonagle == 2)
+               if (scp->nonagle == TCP_NAGLE_CORK)
                        return -EINVAL;
-               scp->nonagle = (u.val == 0) ? 0 : 1;
+               scp->nonagle = (u.val == 0) ? 0 : TCP_NAGLE_OFF;
                /* if (scp->nonagle == 1) { Push pending frames } */
                break;
 
        case DSO_CORK:
                if (optlen != sizeof(int))
                        return -EINVAL;
-               if (scp->nonagle == 1)
+               if (scp->nonagle == TCP_NAGLE_OFF)
                        return -EINVAL;
-               scp->nonagle = (u.val == 0) ? 0 : 2;
+               scp->nonagle = (u.val == 0) ? 0 : TCP_NAGLE_CORK;
                /* if (scp->nonagle == 0) { Push pending frames } */
                break;
 
        case DSO_NODELAY:
                if (r_len > sizeof(int))
                        r_len = sizeof(int);
-               val = (scp->nonagle == 1);
+               val = (scp->nonagle == TCP_NAGLE_OFF);
                r_data = &val;
                break;
 
        case DSO_CORK:
                if (r_len > sizeof(int))
                        r_len = sizeof(int);
-               val = (scp->nonagle == 2);
+               val = (scp->nonagle == TCP_NAGLE_CORK);
                r_data = &val;
                break;