Home
last modified time | relevance | path

Searched refs:IPPROTO_IP (Results 1 – 25 of 53) sorted by relevance

123

/external/avahi/avahi-core/
Dsocket.c133 setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); in avahi_mdns_mcast_join_ipv4()
135 …if (setsockopt(fd, IPPROTO_IP, join ? IP_ADD_MEMBERSHIP : IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq))… in avahi_mdns_mcast_join_ipv4()
229 if (setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &yes, sizeof(yes)) < 0) { in ipv4_pktinfo()
237 if (setsockopt (fd, IPPROTO_IP, IP_RECVINTERFACE, &yes, sizeof(yes)) < 0) { in ipv4_pktinfo()
243 if (setsockopt (fd, IPPROTO_IP, IP_RECVIF, &yes, sizeof(yes)) < 0) { in ipv4_pktinfo()
251 if (setsockopt (fd, IPPROTO_IP, IP_RECVDSTADDR, &yes, sizeof(yes)) < 0) { in ipv4_pktinfo()
261 if (setsockopt(fd, IPPROTO_IP, IP_RECVTTL, &yes, sizeof(yes)) < 0) { in ipv4_pktinfo()
321 if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0) { in avahi_open_socket_ipv4()
327 if (setsockopt(fd, IPPROTO_IP, IP_TTL, &ittl, sizeof(ittl)) < 0) { in avahi_open_socket_ipv4()
333 if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &cyes, sizeof(cyes)) < 0) { in avahi_open_socket_ipv4()
[all …]
/external/tcpdump/
Dipproto.h40 #ifndef IPPROTO_IP
41 #define IPPROTO_IP 0 /* dummy for IP */ macro
/external/kernel-headers/original/uapi/linux/
Din.h28 IPPROTO_IP = 0, /* Dummy protocol for TCP */ enumerator
29 #define IPPROTO_IP IPPROTO_IP macro
/external/iproute2/include/linux/
Din.h28 IPPROTO_IP = 0, /* Dummy protocol for TCP */ enumerator
29 #define IPPROTO_IP IPPROTO_IP macro
/external/strace/xlat/
Dinet_protocols.h11 #if defined(IPPROTO_IP) || (defined(HAVE_DECL_IPPROTO_IP) && HAVE_DECL_IPPROTO_IP)
12 XLAT(IPPROTO_IP),
Dinet_protocols.in1 IPPROTO_IP
/external/strace/tests/
Dinet-cmsg.c116 #define SETSOCKOPT(fd, name) assert(!setsockopt(fd, IPPROTO_IP, (name), &opt_1, sizeof(opt_1))) in main()
158 if (IPPROTO_IP != c->cmsg_level) in main()
/external/iputils/
Dping.c163 (setsockopt(icmp_sock, IPPROTO_IP, IP_TOS, in main()
357 setsockopt(probe_fd, IPPROTO_IP, IP_TOS, (char *)&settos, sizeof(int)) < 0) in main()
500 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, sizeof(rspace)) < 0) { in main()
517 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, rspace[1]) < 0) { in main()
519 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, rspace[1]) < 0) { in main()
537 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, 4 + nroute*4) < 0) { in main()
560 if (setsockopt(icmp_sock, IPPROTO_IP, IP_MULTICAST_LOOP, in main()
568 if (setsockopt(icmp_sock, IPPROTO_IP, IP_MULTICAST_TTL, in main()
573 if (setsockopt(icmp_sock, IPPROTO_IP, IP_TTL, in main()
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_ssdp.c756 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, in ssdp_listener_open()
758 setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, in ssdp_listener_open()
892 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_IF, in ssdp_open_multicast_sock()
899 if (setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, in ssdp_open_multicast_sock()
916 if (setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in ssdp_open_multicast_sock()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c587 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()
602 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()
614 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()
634 if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()
639 else if (cmptr->cmsg_level == IPPROTO_IP && in recvfrom_flags()
DmDNSPosix.c668 err = setsockopt(*sktPtr, IPPROTO_IP, IP_PKTINFO, &kOn, sizeof(kOn)); in SetupSocket()
672 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVDSTADDR, &kOn, sizeof(kOn)); in SetupSocket()
678 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVIF, &kOn, sizeof(kOn)); in SetupSocket()
689 setsockopt(*sktPtr, IPPROTO_IP, IP_RECVTTL, &kOn, sizeof(kOn)); in SetupSocket()
699 err = setsockopt(*sktPtr, IPPROTO_IP, IP_ADD_MEMBERSHIP, &imr, sizeof(imr)); in SetupSocket()
706 …err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_IF, &((struct sockaddr_in*)intfAddr)->sin_addr,… in SetupSocket()
713 err = setsockopt(*sktPtr, IPPROTO_IP, IP_TTL, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive)); in SetupSocket()
721 …err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_TTL, &kByteTwoFiveFive, sizeof(kByteTwoFiveFive… in SetupSocket()
723 …err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_TTL, &kIntTwoFiveFive, sizeof(kIntTwoFiveFive)); in SetupSocket()
/external/srtp/test/
Drtpw.c275 ret = setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, in main()
286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq, in main()
516 ret = setsockopt(sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, (void*)&mreq, in leave_group()
/external/toybox/toys/pending/
Dtraceroute.c132 res = setsockopt(TT.snd_sock, IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)); in send_probe4()
553 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_OPTIONS, in traceroute_main()
564 setsockopt(TT.snd_sock, IPPROTO_IP, IP_TOS, &tyser, sizeof(tyser)) < 0) in traceroute_main()
569 (setsockopt(TT.snd_sock, IPPROTO_IP, IP_DONTFRAG, &set, in traceroute_main()
587 if (setsockopt(TT.snd_sock, IPPROTO_IP, IP_MULTICAST_IF, in traceroute_main()
/external/ipsec-tools/src/racoon/
Dsockmisc.c304 int level = (family == AF_INET) ? IPPROTO_IP : IPPROTO_IPV6; in setsockopt_bypass()
460 && cm->cmsg_level == IPPROTO_IP
496 && cm->cmsg_level == IPPROTO_IP
657 cm->cmsg_level = IPPROTO_IP;
782 level = IPPROTO_IP;
804 (level == IPPROTO_IP ?
823 (level == IPPROTO_IP ?
/external/autotest/client/tests/kvm/scripts/
Dmulticast_guest.py29 s.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
/external/dnsmasq/src/
Dtftp.c108 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVDSTADDR) in tftp_request()
110 else if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in tftp_request()
116 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVDSTADDR) in tftp_request()
118 else if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in tftp_request()
Ddhcp.c49 setsockopt(fd, IPPROTO_IP, IP_RECVIF, &oneopt, sizeof(oneopt)) == -1 || in dhcp_init()
186 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in dhcp_packet()
193 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in dhcp_packet()
351 setsockopt(daemon->dhcpfd, IPPROTO_IP, IP_BOUND_IF, &iface_index, sizeof(iface_index)); in dhcp_packet()
Dnetwork.c367 setsockopt(fd, IPPROTO_IP, IP_RECVDSTADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners()
368 setsockopt(fd, IPPROTO_IP, IP_RECVIF, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners()
385 setsockopt(tftpfd, IPPROTO_IP, IP_RECVDSTADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners()
386 setsockopt(tftpfd, IPPROTO_IP, IP_RECVIF, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners()
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dsocket_types.hpp92 # define ASIO_OS_DEF_IPPROTO_IP IPPROTO_IP
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y444 if (p_protocol == IPPROTO_IP) { in rule_check()
569 p_protocol = IPPROTO_IP; in policy_parse_request_init()
Dtest-policy.c162 proto = IPPROTO_IP;
/external/autotest/client/cros/netprotos/
Dinterface_host.py124 self._recv_sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
/external/webrtc/webrtc/test/channel_transport/
Dudp_transport_impl.cc883 if (!rtpSock->SetSockopt(IPPROTO_IP, IP_TOS, in SetToS()
891 if (!rtcpSock->SetSockopt(IPPROTO_IP, IP_TOS, in SetToS()
1390 if (!_ptrRtpSocket->SetSockopt(IPPROTO_IP,IP_ADD_MEMBERSHIP, in BindLocalRTPSocket()
1462 if (!_ptrRtcpSocket->SetSockopt(IPPROTO_IP,IP_ADD_MEMBERSHIP, in BindLocalRTCPSocket()
1709 if (!rtpSock->SetSockopt(IPPROTO_IP, IP_MULTICAST_TTL, in InitializeSendSockets()
1720 if (!rtcpSock->SetSockopt(IPPROTO_IP, IP_MULTICAST_TTL, in InitializeSendSockets()
2673 if (0 > (sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP))) in LocalHostAddress()
Dudp_socket_posix.cc131 if (SetSockopt(IPPROTO_IP, IP_TOS ,(int8_t*)&serviceType ,4) != 0) in SetTOS()
/external/netcat/
Dnetcat.c721 if (setsockopt(s, IPPROTO_IP, SO_RTABLE, &rtableid, in local_listen()
972 if (setsockopt(s, IPPROTO_IP, IP_TOS, in set_common_sockopts()

123