Home
last modified time | relevance | path

Searched refs:SOCK_DGRAM (Results 1 – 73 of 73) sorted by relevance

/linux-4.4.14/tools/testing/selftests/net/
Dsocket.c28 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
29 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
Dpsock_lib.h75 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()
Dpsock_fanout.c78 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in sock_fanout_open()
/linux-4.4.14/net/rxrpc/
Dar-peer.c84 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()
Dar-transport.c58 case SOCK_DGRAM: in rxrpc_alloc_transport()
Daf_rxrpc.c90 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/
Dnetwork.c34 [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/
Dsocket.h30 SOCK_DGRAM = 1, enumerator
/linux-4.4.14/net/ipv4/
Dudplite.c69 .type = SOCK_DGRAM,
Dudp_tunnel.c19 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4()
Daf_inet.c1006 .type = SOCK_DGRAM,
1014 .type = SOCK_DGRAM,
Dinet_diag.c1022 if (sk->sk_type == SOCK_DGRAM || sk->sk_type == SOCK_STREAM) in inet_diag_handler_get_info()
Dip_output.c925 (sk->sk_type == SOCK_DGRAM) && !sk->sk_no_check_tx) { in __ip_append_data()
Digmp.c2914 SOCK_DGRAM, 0, net); in igmp_net_init()
/linux-4.4.14/net/ipv6/
Dudplite.c63 .type = SOCK_DGRAM,
Dip6_udp_tunnel.c22 err = sock_create_kern(net, AF_INET6, SOCK_DGRAM, 0, &sock); in udp_sock_create6()
Dping.c50 .type = SOCK_DGRAM,
Dip6_output.c1327 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()
Dudp.c1555 .type = SOCK_DGRAM,
/linux-4.4.14/Documentation/networking/timestamping/
Dhwtstamp_config.c107 sock = socket(AF_INET, SOCK_DGRAM, 0); in main()
Dtimestamping.c367 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); in main()
Dtxtimestamp.c438 cfg_proto = SOCK_DGRAM; in parse_opt()
/linux-4.4.14/net/llc/
Dllc_sap.c303 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match()
359 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
Daf_llc.c169 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/
Dllcp_sock.c771 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()
Dllcp_core.c363 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/
Drxrpc.c88 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/
Ddatagram.c201 .sock_type = SOCK_DGRAM,
Daf_phonet.c77 case SOCK_DGRAM: in pn_socket_create()
/linux-4.4.14/arch/um/drivers/
Dumcast_user.c78 fd = socket(AF_INET, SOCK_DGRAM, 0); in umcast_open()
Ddaemon_user.c71 fd = socket(AF_UNIX, SOCK_DGRAM, 0); in connect_to_switch()
Dmconsole_user.c187 notify_sock = socket(PF_UNIX, SOCK_DGRAM, 0); in mconsole_notify()
/linux-4.4.14/Documentation/connector/
Ducon.c153 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); in main()
Dconnector.txt155 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR);
/linux-4.4.14/arch/um/os-Linux/
Dfile.c352 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/
Daf_irda.c743 (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()
DKconfig44 Ultra is available as a special socket : socket(AF_IRDA, SOCK_DGRAM, 1);
/linux-4.4.14/arch/um/os-Linux/drivers/
Dtuntap_user.c159 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, fds); in tuntap_open()
Dethertap_user.c147 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, data_fds); in etap_open()
/linux-4.4.14/net/tipc/
Dserver.c348 case SOCK_DGRAM: in tipc_create_listen_sock()
507 if (s->type == SOCK_DGRAM || s->type == SOCK_RDM) { in tipc_send_to_sock()
Dsocket.c349 case SOCK_DGRAM: in tipc_sk_create()
392 if (sock->type == SOCK_DGRAM) in tipc_sk_create()
/linux-4.4.14/Documentation/networking/
Dphonet.txt102 fd = socket(PF_PHONET, SOCK_DGRAM, 0);
110 This protocol follows the SOCK_DGRAM connection-less semantics.
Dudplite.txt44 s = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);
48 s = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDPLITE);
Drxrpc.txt78 (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 */
Dieee802154.txt28 int sd = socket(PF_IEEE802154, SOCK_DGRAM, 0);
Dcan.txt27 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)
Dpacket_mmap.txt93 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
Dl2tp.txt250 kernel_fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OL2TP);
/linux-4.4.14/include/linux/
Dnet.h65 SOCK_DGRAM = 2, enumerator
/linux-4.4.14/net/ax25/
Dax25_in.c263 sk = ax25_get_socket(&dest, &src, SOCK_DGRAM); in ax25_rcv()
Daf_ax25.c815 case SOCK_DGRAM: in ax25_create()
896 case SOCK_DGRAM: in ax25_make_new()
/linux-4.4.14/net/vmw_vsock/
Daf_vsock.c567 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/
Daf_packet.c2008 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/
Dl2tp_ip.c607 .type = SOCK_DGRAM,
Dl2tp_ip6.c758 .type = SOCK_DGRAM,
Dl2tp_core.c1405 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/
Dl2cap_sock.c1538 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/
Dsvcsock.c1431 if (sock->type == SOCK_DGRAM) in svc_setup_socket()
1546 type = (protocol == IPPROTO_UDP)? SOCK_DGRAM : SOCK_STREAM; in svc_create_socket()
Dclnt.c1147 SOCK_DGRAM, IPPROTO_UDP, &sock, 1); in rpc_sockname()
Dxprtsock.c2179 xs_addr(xprt)->sa_family, SOCK_DGRAM, in xs_udp_setup_socket()
/linux-4.4.14/net/unix/
Daf_unix.c813 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/
Daf_ipx.c1346 if (sock->type != SOCK_DGRAM) in ipx_create()
1566 if (sock->type == SOCK_DGRAM) { in ipx_connect()
/linux-4.4.14/drivers/isdn/mISDN/
Dsocket.c608 if (sock->type != SOCK_DGRAM) in data_sock_create()
Dl1oip_core.c672 if (sock_create(PF_INET, SOCK_DGRAM, IPPROTO_UDP, &socket)) { in l1oip_socket_thread()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_sync.c1500 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/
Dsocket.c1005 case SOCK_DGRAM: in ieee802154_create()
/linux-4.4.14/net/can/
Dbcm.c1609 .type = SOCK_DGRAM,
/linux-4.4.14/tools/net/
Dbpf_dbg.c506 sock = socket(AF_INET, SOCK_DGRAM, 0); in bpf_runnable()
/linux-4.4.14/net/netlink/
Daf_netlink.c1218 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/
Dddp.c1030 if (sock->type != SOCK_RAW && sock->type != SOCK_DGRAM) in atalk_create()
/linux-4.4.14/Documentation/usb/
Dgadget-testing.txt457 of hardware, so only SOCK_DGRAM has been tested. For the latter to work,
/linux-4.4.14/tools/lguest/
Dlguest.c2862 ipfd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); in setup_tun_net()
/linux-4.4.14/security/selinux/
Dhooks.c1181 case SOCK_DGRAM: in socket_type_to_security_class()
1193 case SOCK_DGRAM: in socket_type_to_security_class()