Lines Matching refs:sockopt_val
554 int sockopt_val = 0; in dgram_ctrl() local
630 sockopt_val = IP_PMTUDISC_DO; in dgram_ctrl()
632 &sockopt_val, sizeof(sockopt_val))) < 0) in dgram_ctrl()
638 sockopt_val = IPV6_PMTUDISC_DO; in dgram_ctrl()
640 &sockopt_val, sizeof(sockopt_val))) < 0) in dgram_ctrl()
661 sockopt_len = sizeof(sockopt_val); in dgram_ctrl()
665 getsockopt(b->num, IPPROTO_IP, IP_MTU, (void *)&sockopt_val, in dgram_ctrl()
666 &sockopt_len)) < 0 || sockopt_val < 0) { in dgram_ctrl()
673 data->mtu = sockopt_val - 8 - 20; in dgram_ctrl()
681 (void *)&sockopt_val, &sockopt_len)) < 0 in dgram_ctrl()
682 || sockopt_val < 0) { in dgram_ctrl()
689 data->mtu = sockopt_val - 8 - 40; in dgram_ctrl()
910 sockopt_val = num ? 1 : 0; in dgram_ctrl()
912 &sockopt_val, sizeof(sockopt_val))) < 0) in dgram_ctrl()
916 sockopt_val = num ? IP_PMTUDISC_PROBE : IP_PMTUDISC_DONT; in dgram_ctrl()
918 &sockopt_val, sizeof(sockopt_val))) < 0) in dgram_ctrl()
922 sockopt_val = num ? 1 : 0; in dgram_ctrl()
924 (const char *)&sockopt_val, in dgram_ctrl()
925 sizeof(sockopt_val))) < 0) in dgram_ctrl()
935 sockopt_val = num ? 1 : 0; in dgram_ctrl()
937 (const void *)&sockopt_val, in dgram_ctrl()
938 sizeof(sockopt_val))) < 0) in dgram_ctrl()
943 sockopt_val = num ? IP_PMTUDISC_PROBE : IP_PMTUDISC_DONT; in dgram_ctrl()
945 &sockopt_val, sizeof(sockopt_val))) < 0) in dgram_ctrl()