skipped 415 lines 416 416 } else { 417 417 ret |= dump_opt(sk, SOL_IP, IP_FREEBIND, &ioe->freebind); 418 418 ret |= dump_opt(sk, SOL_IP, IP_PKTINFO, &ioe->pktinfo); 419 + ret |= dump_opt(sk, SOL_IP, IP_TOS, &ioe->tos); 419 420 } 420 421 ioe->has_freebind = ioe->freebind; 421 422 ioe->has_pktinfo = !!ioe->pktinfo; 423 + ioe->has_tos = !!ioe->tos; 422 424 423 425 return ret; 424 426 } skipped 388 lines 813 815 ret |= restore_opt(sk, SOL_IP, IP_FREEBIND, &ioe->freebind); 814 816 if (ioe->has_pktinfo) 815 817 ret |= restore_opt(sk, SOL_IP, IP_PKTINFO, &ioe->pktinfo); 818 + if (ioe->has_tos) 819 + ret |= restore_opt(sk, SOL_IP, IP_TOS, &ioe->tos); 816 820 } 817 821 818 822 if (ioe->raw) skipped 239 lines