--- zzzz-none-000/linux-2.6.28.10/net/socket.c 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/net/socket.c 2009-10-23 13:23:35.000000000 +0000 @@ -857,6 +857,7 @@ void __user *argp = (void __user *)arg; int pid, err; struct net *net; + unsigned long tc_index; sock = file->private_data; sk = sock->sk; @@ -917,6 +918,19 @@ err = dlci_ioctl_hook(cmd, argp); mutex_unlock(&dlci_ioctl_mutex); break; + + case SIOCSET_TC_INDEX: + err = -EFAULT; + if (get_user(tc_index, (unsigned long __user *)argp)) + break; + sock->sk->sk_tc_index = tc_index; + err = 0; + break; + + case SIOCGET_TC_INDEX: + err = put_user(sock->sk->sk_tc_index, (unsigned long __user *)argp); + break; + default: err = sock->ops->ioctl(sock, cmd, arg);