Home
last modified time | relevance | path

Searched refs:cmsg_type (Results 1 – 25 of 46) sorted by relevance

12

/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c588 cmptr->cmsg_type == IP_PKTINFO) { in recvfrom_flags()
603 cmptr->cmsg_type == IP_RECVDSTADDR) { in recvfrom_flags()
615 cmptr->cmsg_type == IP_RECVIF) { in recvfrom_flags()
635 cmptr->cmsg_type == IP_RECVTTL) { in recvfrom_flags()
640 … cmptr->cmsg_type == IP_TTL) { // some implementations seem to send IP_TTL instead of IP_RECVTTL in recvfrom_flags()
648 cmptr->cmsg_type == IPV6_2292_PKTINFO) { in recvfrom_flags()
667 cmptr->cmsg_type == IPV6_2292_HOPLIMIT) { in recvfrom_flags()
/external/libchrome/base/posix/
Dunix_domain_socket_linux.cc69 cmsg->cmsg_type = SCM_RIGHTS; in SendMsg()
142 cmsg->cmsg_type == SCM_RIGHTS) { in RecvMsgWithFlags()
152 cmsg->cmsg_type == SCM_CREDENTIALS) { in RecvMsgWithFlags()
/external/strace/
Dnet.c311 int cmsg_type; member
475 print_cmsg_type_data(struct tcb *tcp, const int cmsg_level, const int cmsg_type, in print_cmsg_type_data() argument
480 printxval(scmvals, cmsg_type, "SCM_???"); in print_cmsg_type_data()
481 switch (cmsg_type) { in print_cmsg_type_data()
494 printxval(ip_cmsg_types, cmsg_type, "IP_???"); in print_cmsg_type_data()
495 switch (cmsg_type) { in print_cmsg_type_data()
524 tprintf("%u", cmsg_type); in print_cmsg_type_data()
559 int cmsg_type = in printcmsghdr() local
561 (current_wordsize < sizeof(long)) ? u.cmsg32->cmsg_type : in printcmsghdr()
563 u.cmsg->cmsg_type; in printcmsghdr()
[all …]
/external/avahi/avahi-core/
Dsocket.c523 cmsg->cmsg_type = IP_PKTINFO; in avahi_send_dns_packet_ipv4()
552 cmsg->cmsg_type = IP_SENDSRCADDR; in avahi_send_dns_packet_ipv4()
609 cmsg->cmsg_type = IPV6_PKTINFO; in avahi_send_dns_packet_ipv6()
715 switch (cmsg->cmsg_type) { in avahi_recv_dns_packet_ipv4()
770 avahi_log_warn("Unhandled cmsg_type: %d", cmsg->cmsg_type); in avahi_recv_dns_packet_ipv4()
867 switch (cmsg->cmsg_type) { in avahi_recv_dns_packet_ipv6()
892 avahi_log_warn("Unhandled cmsg_type: %d", cmsg->cmsg_type); in avahi_recv_dns_packet_ipv6()
Dnetlink.c78 if (!cmsg || cmsg->cmsg_type != SCM_CREDENTIALS) { in avahi_netlink_work()
/external/avahi/avahi-daemon/
Dchroot.c138 cmsg.hdr.cmsg_type = SCM_RIGHTS; in send_fd()
178 cmsg.hdr.cmsg_type = SCM_RIGHTS; in recv_fd()
200 assert(h->cmsg_type == SCM_RIGHTS); in recv_fd()
/external/strace/tests/
Dinet-cmsg.c164 switch (c->cmsg_type) { in main()
186 printf("%d", c->cmsg_type); in main()
Dscm_rights.c74 control.cmsg.cmsg_type = SCM_RIGHTS; in main()
/external/valgrind/none/tests/
Dfdleak_cmsg.c69 cmsg->cmsg_type = SCM_RIGHTS; in server()
133 cmsg->cmsg_type == SCM_RIGHTS && in client()
/external/dnsmasq/src/
Dtftp.c100 if (cmptr->cmsg_level == SOL_IP && cmptr->cmsg_type == IP_PKTINFO) in tftp_request()
108 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()
Dforward.c73 cmptr->cmsg_type = IP_PKTINFO; in send_from()
79 cmptr->cmsg_type = IP_SENDSRCADDR; in send_from()
89 cmptr->cmsg_type = IPV6_PKTINFO; in send_from()
652 if (cmptr->cmsg_level == SOL_IP && cmptr->cmsg_type == IP_PKTINFO) in receive_query()
661 if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVDSTADDR) in receive_query()
663 else if (cmptr->cmsg_level == IPPROTO_IP && cmptr->cmsg_type == IP_RECVIF) in receive_query()
676 if (cmptr->cmsg_level == IPV6_LEVEL && cmptr->cmsg_type == IPV6_PKTINFO) in receive_query()
Ddhcp.c176 if (cmptr->cmsg_level == SOL_IP && cmptr->cmsg_type == IP_PKTINFO) in dhcp_packet()
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()
300 cmptr->cmsg_type = IP_PKTINFO; in dhcp_packet()
/external/iputils/
Dtracepath6.c175 switch(cmsg->cmsg_type) { in recverr()
186 printf("cmsg6:%d\n ", cmsg->cmsg_type); in recverr()
190 switch(cmsg->cmsg_type) { in recverr()
198 printf("cmsg4:%d\n ", cmsg->cmsg_type); in recverr()
Dtracepath.c151 if (cmsg->cmsg_type == IP_RECVERR) { in recverr()
153 } else if (cmsg->cmsg_type == IP_TTL) { in recverr()
156 printf("cmsg:%d\n ", cmsg->cmsg_type); in recverr()
Dping6.c212 cmsg->cmsg_type = IPV6_RTHDR; in inet6_srcrt_init()
850 srcrt->cmsg_type = IPV6_RTHDR; in main()
1050 cmsg->cmsg_type = IPV6_PKTINFO; in main()
1301 if (cmsg->cmsg_type == IPV6_RECVERR) in receive_error_msg()
1600 switch(c->cmsg_type) { in parse_reply()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc233 if (hdr->cmsg_type == SCM_RIGHTS) { in ClientEvent()
247 } else if (hdr->cmsg_type == SCM_CREDENTIALS) { in ClientEvent()
Dcrash_generation_client.cc70 hdr->cmsg_type = SCM_RIGHTS; in RequestDump()
/external/ipsec-tools/src/racoon/
Dsockmisc.c430 "cmsg %d %d\n", cm->cmsg_level, cm->cmsg_type);)
435 && cm->cmsg_type == IPV6_PKTINFO
461 && cm->cmsg_type == IP_PKTINFO
479 && cm->cmsg_type == IPV6_RECVDSTADDR
497 && cm->cmsg_type == IP_RECVDSTADDR
598 cm->cmsg_type = IPV6_PKTINFO;
658 cm->cmsg_type = IP_PKTINFO;
/external/iputils/ninfod/
Dninfod.c318 (cmsg->cmsg_type == IPV6_PKTINFO in ni_recv()
320 || cmsg->cmsg_type == IPV6_2292PKTINFO in ni_recv()
359 cmsg->cmsg_type = ipv6_pktinfo; in ni_send()
/external/iproute2/include/
Dbpf_scm.h57 cmsg->cmsg_type = SCM_RIGHTS; in bpf_map_set_init()
/external/libnl/lib/
Dnl.c264 cmsg->cmsg_type = SCM_CREDENTIALS; in nl_send_iovec()
474 cmsg->cmsg_type == SCM_CREDENTIALS) { in nl_recv()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc905 hdr->cmsg_type = SCM_RIGHTS; in CrashHandler()
910 hdr->cmsg_type = SCM_CREDENTIALS; in CrashHandler()
971 if (hdr->cmsg_type == SCM_RIGHTS) { in TEST()
976 } else if (hdr->cmsg_type == SCM_CREDENTIALS) { in TEST()
/external/libpcap/
Dpcap-bt-monitor-linux.c112 if (cmsg->cmsg_type == SCM_TIMESTAMP) { in bt_monitor_read()
/external/iproute2/examples/bpf/
Dbpf_agent.c188 if (!cmsg || cmsg->cmsg_type != SCM_RIGHTS) in bpf_map_set_recv()
/external/avahi/avahi-autoipd/
Diface-linux.c211 if (!(cmsghdr = CMSG_FIRSTHDR(&msghdr)) || cmsghdr->cmsg_type != SCM_CREDENTIALS) { in process_response()

12