- int pkt_size = 256, ret;
-
- /* hack to get a service code */
- ret = setsockopt(fd, SOL_DCCP, DCCP_SOCKOPT_PACKET_SIZE,
- (char*)&pkt_size, sizeof(pkt_size));
- if (ret < 0)
- return -E_DCCP_PACKET_SIZE;
- ret = setsockopt(fd, SOL_DCCP, DCCP_SOCKOPT_SERVICE,
- (char*)&pkt_size, sizeof(pkt_size));
- if (ret < 0)
- return -E_DCCP_SERVICE;
- return 1;