- int cscov = var_GetInteger (p_access, SOUT_CFG_PREFIX"cscov");
- if (cscov)
- {
- switch (proto)
- {
-#ifdef UDPLITE_SEND_CSCOV
- case IPPROTO_UDPLITE:
- cscov += 8;
- setsockopt (i_handle, SOL_UDPLITE, UDPLITE_SEND_CSCOV,
- &(int){ cscov }, sizeof (cscov));
- break;
-#endif
-#ifdef DCCP_SOCKOPT_RECV_CSCOV
- /* FIXME: ^^is this the right name ? */
- /* FIXME: is this inherited by accept() ? */
- case IPPROTO_DCCP:
- cscov = ((cscov + 3) >> 2) + 1;
- if (cscov > 15)
- break; /* out of DCCP cscov range */
- setsockopt (i_handle, SOL_DCCP, DCCP_SOCKOPT_RECV_CSCOV,
- &(int){ cscov }, sizeof (cscov));
- break;
-#endif
- }
- }
-