/linux-4.4.14/tools/testing/selftests/net/ |
D | socket.c | 28 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 }, 29 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
|
D | psock_lib.h | 75 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open() 76 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
|
D | psock_fanout.c | 78 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in sock_fanout_open()
|
/linux-4.4.14/net/rxrpc/ |
D | ar-peer.c | 84 case SOCK_DGRAM: in rxrpc_alloc_peer() 206 local->srx.transport_type == SOCK_DGRAM in rxrpc_find_peer() 210 peer->srx.transport_type == SOCK_DGRAM && in rxrpc_find_peer()
|
D | ar-transport.c | 58 case SOCK_DGRAM: in rxrpc_alloc_transport()
|
D | af_rxrpc.c | 90 if (srx->transport_type != SOCK_DGRAM) in rxrpc_validate_address() 629 if (sock->type != SOCK_DGRAM) in rxrpc_create()
|
/linux-4.4.14/security/tomoyo/ |
D | network.c | 34 [SOCK_DGRAM] = "dgram", 146 [SOCK_DGRAM] = { 169 [SOCK_DGRAM] = { 691 case SOCK_DGRAM: in tomoyo_socket_connect_permission() 728 case SOCK_DGRAM: in tomoyo_socket_bind_permission() 760 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | socket.h | 30 SOCK_DGRAM = 1, enumerator
|
/linux-4.4.14/net/ipv4/ |
D | udplite.c | 69 .type = SOCK_DGRAM,
|
D | udp_tunnel.c | 19 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4()
|
D | af_inet.c | 1006 .type = SOCK_DGRAM, 1014 .type = SOCK_DGRAM,
|
D | inet_diag.c | 1022 if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_STREAM) in inet_diag_handler_get_info()
|
D | ip_output.c | 925 (sk->sk_type == SOCK_DGRAM) && !sk->sk_no_check_tx) { in __ip_append_data()
|
D | igmp.c | 2914 SOCK_DGRAM, 0, net); in igmp_net_init()
|
/linux-4.4.14/net/ipv6/ |
D | udplite.c | 63 .type = SOCK_DGRAM,
|
D | ip6_udp_tunnel.c | 22 err = sock_create_kern(net, AF_INET6, SOCK_DGRAM, 0, &sock); in udp_sock_create6()
|
D | ping.c | 50 .type = SOCK_DGRAM,
|
D | ip6_output.c | 1327 if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_RAW) { in __ip6_append_data() 1355 (sk->sk_type == SOCK_DGRAM) && !udp_get_no_check6_tx(sk)) { in __ip6_append_data()
|
D | udp.c | 1555 .type = SOCK_DGRAM,
|
/linux-4.4.14/Documentation/networking/timestamping/ |
D | hwtstamp_config.c | 107 sock = socket(AF_INET, SOCK_DGRAM, 0); in main()
|
D | timestamping.c | 367 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); in main()
|
D | txtimestamp.c | 438 cfg_proto = SOCK_DGRAM; in parse_opt()
|
/linux-4.4.14/net/llc/ |
D | llc_sap.c | 303 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match() 359 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
|
D | af_llc.c | 169 if (likely(sock->type == SOCK_DGRAM || sock->type == SOCK_STREAM)) { in llc_ui_create() 927 if (sk->sk_type == SOCK_DGRAM || addr->sllc_ua) { in llc_ui_sendmsg()
|
/linux-4.4.14/net/nfc/ |
D | llcp_sock.c | 771 if (sk->sk_type == SOCK_DGRAM) { in llcp_sock_sendmsg() 843 if (sk->sk_type == SOCK_DGRAM && msg->msg_name) { in llcp_sock_recvmsg() 864 sk->sk_type == SOCK_DGRAM || in llcp_sock_recvmsg() 1003 sock->type != SOCK_DGRAM && in llcp_sock_create()
|
D | llcp_core.c | 363 if (tmp_sock->sk.sk_type == SOCK_DGRAM && in nfc_llcp_sock_from_sn() 856 if (llcp_sock == NULL || llcp_sock->sk.sk_type != SOCK_DGRAM) in nfc_llcp_recv_ui()
|
/linux-4.4.14/fs/afs/ |
D | rxrpc.c | 88 ret = sock_create_kern(&init_net, AF_RXRPC, SOCK_DGRAM, PF_INET, &socket); in afs_open_socket() 100 srx.transport_type = SOCK_DGRAM; in afs_open_socket() 364 srx.transport_type = SOCK_DGRAM; in afs_make_call()
|
/linux-4.4.14/net/phonet/ |
D | datagram.c | 201 .sock_type = SOCK_DGRAM,
|
D | af_phonet.c | 77 case SOCK_DGRAM: in pn_socket_create()
|
/linux-4.4.14/arch/um/drivers/ |
D | umcast_user.c | 78 fd = socket(AF_INET, SOCK_DGRAM, 0); in umcast_open()
|
D | daemon_user.c | 71 fd = socket(AF_UNIX, SOCK_DGRAM, 0); in connect_to_switch()
|
D | mconsole_user.c | 187 notify_sock = socket(PF_UNIX, SOCK_DGRAM, 0); in mconsole_notify()
|
/linux-4.4.14/Documentation/connector/ |
D | ucon.c | 153 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); in main()
|
D | connector.txt | 155 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR);
|
/linux-4.4.14/arch/um/os-Linux/ |
D | file.c | 352 int err, type = stream ? SOCK_STREAM : SOCK_DGRAM; in os_pipe() 525 sock = socket(PF_UNIX, SOCK_DGRAM, 0); in os_create_unix_socket()
|
/linux-4.4.14/net/irda/ |
D | af_irda.c | 743 (sk->sk_type != SOCK_DGRAM)) in irda_listen() 779 if ((sk->sk_type == SOCK_DGRAM) && in irda_bind() 853 (sk->sk_type != SOCK_DGRAM)) in irda_accept() 967 if ((sk->sk_type == SOCK_DGRAM) && (sk->sk_protocol == IRDAPROTO_ULTRA)) in irda_connect() 1099 case SOCK_DGRAM: /* For TTP Unitdata or LMP Ultra transfers */ in irda_create() 1124 case SOCK_DGRAM: in irda_create() 1786 case SOCK_DGRAM: in irda_poll()
|
D | Kconfig | 44 Ultra is available as a special socket : socket(AF_IRDA, SOCK_DGRAM, 1);
|
/linux-4.4.14/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 159 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, fds); in tuntap_open()
|
D | ethertap_user.c | 147 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, data_fds); in etap_open()
|
/linux-4.4.14/net/tipc/ |
D | server.c | 348 case SOCK_DGRAM: in tipc_create_listen_sock() 507 if (s->type == SOCK_DGRAM || s->type == SOCK_RDM) { in tipc_send_to_sock()
|
D | socket.c | 349 case SOCK_DGRAM: in tipc_sk_create() 392 if (sock->type == SOCK_DGRAM) in tipc_sk_create()
|
/linux-4.4.14/Documentation/networking/ |
D | phonet.txt | 102 fd = socket(PF_PHONET, SOCK_DGRAM, 0); 110 This protocol follows the SOCK_DGRAM connection-less semantics.
|
D | udplite.txt | 44 s = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDPLITE); 48 s = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDPLITE);
|
D | rxrpc.txt | 78 (1) created as type SOCK_DGRAM; 490 client = socket(AF_RXRPC, SOCK_DGRAM, PF_INET); 500 .transport_type = SOCK_DGRAM, /* type of transport socket */ 530 .transport_type = SOCK_DGRAM, /* type of transport socket */ 571 server = socket(AF_RXRPC, SOCK_DGRAM, PF_INET); 596 .transport_type = SOCK_DGRAM, /* type of transport socket */
|
D | ieee802154.txt | 28 int sd = socket(PF_IEEE802154, SOCK_DGRAM, 0);
|
D | can.txt | 27 4.2 Broadcast Manager protocol sockets (SOCK_DGRAM) 35 4.4 unconnected transport protocols (SOCK_DGRAM) 254 s = socket(PF_CAN, SOCK_DGRAM, CAN_BCM); 634 4.2 Broadcast Manager protocol sockets (SOCK_DGRAM) 676 s = socket(PF_CAN, SOCK_DGRAM, CAN_BCM); 847 4.4 unconnected transport protocols (SOCK_DGRAM)
|
D | packet_mmap.txt | 93 information can be captured or SOCK_DGRAM for the cooked 182 So, whatever you choose for the socket mode (SOCK_DGRAM or SOCK_RAW), 188 can set tp_net (with SOCK_DGRAM) or tp_mac (with SOCK_RAW). In order
|
D | l2tp.txt | 250 kernel_fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OL2TP);
|
/linux-4.4.14/include/linux/ |
D | net.h | 65 SOCK_DGRAM = 2, enumerator
|
/linux-4.4.14/net/ax25/ |
D | ax25_in.c | 263 sk = ax25_get_socket(&dest, &src, SOCK_DGRAM); in ax25_rcv()
|
D | af_ax25.c | 815 case SOCK_DGRAM: in ax25_create() 896 case SOCK_DGRAM: in ax25_make_new()
|
/linux-4.4.14/net/vmw_vsock/ |
D | af_vsock.c | 567 case SOCK_DGRAM: in __vsock_bind() 870 if (sock->type == SOCK_DGRAM) { in vsock_poll() 1838 case SOCK_DGRAM: in vsock_create()
|
/linux-4.4.14/net/packet/ |
D | af_packet.c | 2008 if (sk->sk_type != SOCK_DGRAM) in packet_rcv() 2124 if (sk->sk_type != SOCK_DGRAM) in tpacket_rcv() 2148 if (sk->sk_type == SOCK_DGRAM) { in tpacket_rcv() 2382 if (sock->type == SOCK_DGRAM) { in tpacket_fill_skb() 2409 if (sock->type == SOCK_DGRAM) { in tpacket_fill_skb() 2754 if (sock->type == SOCK_DGRAM) { in packet_snd() 3056 if (sock->type != SOCK_DGRAM && sock->type != SOCK_RAW && in packet_create()
|
/linux-4.4.14/net/l2tp/ |
D | l2tp_ip.c | 607 .type = SOCK_DGRAM,
|
D | l2tp_ip6.c | 758 .type = SOCK_DGRAM,
|
D | l2tp_core.c | 1405 err = sock_create_kern(net, AF_INET6, SOCK_DGRAM, in l2tp_tunnel_sock_create() 1433 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, in l2tp_tunnel_sock_create()
|
/linux-4.4.14/net/bluetooth/ |
D | l2cap_sock.c | 1538 case SOCK_DGRAM: in l2cap_sock_init() 1617 sock->type != SOCK_DGRAM && sock->type != SOCK_RAW) in l2cap_sock_create()
|
/linux-4.4.14/net/sunrpc/ |
D | svcsock.c | 1431 if (sock->type == SOCK_DGRAM) in svc_setup_socket() 1546 type = (protocol == IPPROTO_UDP)? SOCK_DGRAM : SOCK_STREAM; in svc_create_socket()
|
D | clnt.c | 1147 SOCK_DGRAM, IPPROTO_UDP, &sock, 1); in rpc_sockname()
|
D | xprtsock.c | 2179 xs_addr(xprt)->sa_family, SOCK_DGRAM, in xs_udp_setup_socket()
|
/linux-4.4.14/net/unix/ |
D | af_unix.c | 813 sock->type = SOCK_DGRAM; in unix_create() 814 case SOCK_DGRAM: in unix_create() 1393 if (ska->sk_type != SOCK_DGRAM) { in unix_socketpair()
|
/linux-4.4.14/net/ipx/ |
D | af_ipx.c | 1346 if (sock->type != SOCK_DGRAM) in ipx_create() 1566 if (sock->type == SOCK_DGRAM) { in ipx_connect()
|
/linux-4.4.14/drivers/isdn/mISDN/ |
D | socket.c | 608 if (sock->type != SOCK_DGRAM) in data_sock_create()
|
D | l1oip_core.c | 672 if (sock_create(PF_INET, SOCK_DGRAM, IPPROTO_UDP, &socket)) { in l1oip_socket_thread()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1500 result = sock_create_kern(ipvs->net, ipvs->mcfg.mcast_af, SOCK_DGRAM, in make_send_sock() 1556 result = sock_create_kern(ipvs->net, ipvs->bcfg.mcast_af, SOCK_DGRAM, in make_receive_sock()
|
/linux-4.4.14/net/ieee802154/ |
D | socket.c | 1005 case SOCK_DGRAM: in ieee802154_create()
|
/linux-4.4.14/net/can/ |
D | bcm.c | 1609 .type = SOCK_DGRAM,
|
/linux-4.4.14/tools/net/ |
D | bpf_dbg.c | 506 sock = socket(AF_INET, SOCK_DGRAM, 0); in bpf_runnable()
|
/linux-4.4.14/net/netlink/ |
D | af_netlink.c | 1218 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in netlink_create() 2634 if (sock_create_lite(PF_NETLINK, SOCK_DGRAM, unit, &sock)) in __netlink_kernel_create()
|
/linux-4.4.14/net/appletalk/ |
D | ddp.c | 1030 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in atalk_create()
|
/linux-4.4.14/Documentation/usb/ |
D | gadget-testing.txt | 457 of hardware, so only SOCK_DGRAM has been tested. For the latter to work,
|
/linux-4.4.14/tools/lguest/ |
D | lguest.c | 2862 ipfd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); in setup_tun_net()
|
/linux-4.4.14/security/selinux/ |
D | hooks.c | 1181 case SOCK_DGRAM: in socket_type_to_security_class() 1193 case SOCK_DGRAM: in socket_type_to_security_class()
|