Searched refs:protocol (Results 1 - 25 of 1519) sorted by relevance

1234567891011>>

/linux-master/include/linux/usb/
H A Dg_hid.h13 unsigned char protocol; member in struct:hidg_func_descriptor
/linux-master/tools/testing/selftests/bpf/progs/
H A Dmptcpify.c11 int BPF_PROG(mptcpify, int family, int type, int protocol) argument
15 (!protocol || protocol == IPPROTO_TCP)) {
19 return protocol;
/linux-master/tools/testing/selftests/net/
H A Dnet_helper.sh10 local protocol="${3}"
16 # for tcp protocol additionally check the socket state
17 [ ${protocol} = "tcp" ] && pattern="${pattern}0A"
20 /proc/net/"${protocol}"* | grep -q "${pattern}"; then
H A Dsocket.c15 int protocol; member in struct:socket_testcase
23 * of the protocol not being configured into the kernel.
49 fd = socket(s->domain, s->type, s->protocol);
64 s->domain, s->type, s->protocol,
77 s->domain, s->type, s->protocol,
/linux-master/security/selinux/include/
H A Dnetport.h23 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
/linux-master/net/ipv6/
H A Dprotocol.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * PF_INET6 protocol dispatch tables.
22 #include <net/protocol.h>
28 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) argument
30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
35 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) argument
39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
52 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) argument
54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
59 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) argument
[all...]
H A Dxfrm6_protocol.c2 /* xfrm6_protocol.c - Generic xfrm protocol multiplexer for ipv6.
19 #include <net/protocol.h>
27 static inline struct xfrm6_protocol __rcu **proto_handlers(u8 protocol) argument
29 switch (protocol) {
46 static int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) argument
50 struct xfrm6_protocol __rcu **head = proto_handlers(protocol);
55 for_each_protocol_rcu(*proto_handlers(protocol), handler)
219 static inline const struct inet6_protocol *netproto(unsigned char protocol) argument
221 switch (protocol) {
234 unsigned char protocol)
233 xfrm6_protocol_register(struct xfrm6_protocol *handler, unsigned char protocol) argument
280 xfrm6_protocol_deregister(struct xfrm6_protocol *handler, unsigned char protocol) argument
[all...]
/linux-master/net/ipv4/
H A Dprotocol.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * INET protocol dispatch tables.
25 #include <net/protocol.h>
32 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) argument
34 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol],
39 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) argument
41 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol],
46 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) argument
50 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol],
59 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) argument
[all...]
H A Dxfrm4_protocol.c2 /* xfrm4_protocol.c - Generic xfrm protocol multiplexer.
18 #include <net/protocol.h>
26 static inline struct xfrm4_protocol __rcu **proto_handlers(u8 protocol) argument
28 switch (protocol) {
45 static int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err) argument
49 struct xfrm4_protocol __rcu **head = proto_handlers(protocol);
203 static inline const struct net_protocol *netproto(unsigned char protocol) argument
205 switch (protocol) {
218 unsigned char protocol)
226 if (!proto_handlers(protocol) || !netprot
217 xfrm4_protocol_register(struct xfrm4_protocol *handler, unsigned char protocol) argument
264 xfrm4_protocol_deregister(struct xfrm4_protocol *handler, unsigned char protocol) argument
[all...]
/linux-master/net/ipv4/netfilter/
H A Dnf_socket_ipv4.c20 extract_icmp4_fields(const struct sk_buff *skb, u8 *protocol, argument
43 if (inside_iph->protocol != IPPROTO_TCP &&
44 inside_iph->protocol != IPPROTO_UDP)
56 *protocol = inside_iph->protocol;
67 const u8 protocol,
72 switch (protocol) {
91 u8 protocol; local
98 if (iph->protocol == IPPROTO_UDP || iph->protocol
66 nf_socket_get_sock_v4(struct net *net, struct sk_buff *skb, const int doff, const u8 protocol, const __be32 saddr, const __be32 daddr, const __be16 sport, const __be16 dport, const struct net_device *in) argument
[all...]
/linux-master/include/trace/events/
H A Dsmbus.h26 char read_write, u8 command, int protocol,
28 TP_ARGS(adap, addr, flags, read_write, command, protocol, data),
30 protocol == I2C_SMBUS_PROC_CALL ||
31 protocol == I2C_SMBUS_BLOCK_PROC_CALL),
38 __field(__u32, protocol )
45 __entry->protocol = protocol;
47 switch (protocol) {
74 __print_symbolic(__entry->protocol,
94 char read_write, u8 command, int protocol),
[all...]
/linux-master/net/ax25/
H A Dax25_iface.c57 struct ax25_protocol *protocol; local
60 protocol = protocol_list;
61 if (protocol == NULL)
64 if (protocol->pid == pid) {
65 protocol_list = protocol->next;
69 while (protocol != NULL && protocol->next != NULL) {
70 if (protocol->next->pid == pid) {
71 protocol->next = protocol
161 struct ax25_protocol *protocol; local
202 struct ax25_protocol *protocol; local
[all...]
/linux-master/include/linux/mdio/
H A Dmdio-i2c.h22 enum mdio_i2c_proto protocol);
/linux-master/samples/bpf/
H A Dsock_flags.bpf.c9 char fmt[] = "socket: family %d type %d protocol %d\n";
15 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol);
23 sk->protocol == IPPROTO_ICMPV6)
32 char fmt[] = "socket: family %d type %d protocol %d\n";
34 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol);
41 sk->protocol == IPPROTO_ICMP)
/linux-master/sound/firewire/fireface/
H A DMakefile3 ff-stream.o ff-pcm.o ff-hwdep.o ff-protocol-former.o \
4 ff-protocol-latter.o
/linux-master/drivers/pnp/
H A Dcore.c3 * core.c - contains all core device and protocol registration functions
34 static void pnp_remove_protocol(struct pnp_protocol *protocol) argument
37 list_del(&protocol->protocol_list);
42 * pnp_register_protocol - adds a pnp protocol to the pnp layer
43 * @protocol: pointer to the corresponding pnp_protocol structure
47 int pnp_register_protocol(struct pnp_protocol *protocol) argument
52 INIT_LIST_HEAD(&protocol->devices);
53 INIT_LIST_HEAD(&protocol->cards);
67 protocol->number = nodenum;
68 dev_set_name(&protocol
85 pnp_unregister_protocol(struct pnp_protocol *protocol) argument
129 pnp_alloc_dev(struct pnp_protocol *protocol, int id, const char *pnpid) argument
[all...]
/linux-master/net/netfilter/
H A Dutils.c11 unsigned int dataoff, u8 protocol)
20 if ((protocol != IPPROTO_TCP && protocol != IPPROTO_UDP &&
23 skb->len - dataoff, protocol,
30 if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP)
35 protocol, 0);
45 u8 protocol)
53 return nf_ip_checksum(skb, hook, dataoff, protocol);
56 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol,
10 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol) argument
43 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol) argument
64 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol) argument
97 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol) argument
123 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol, unsigned short family) argument
142 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol, unsigned short family) argument
[all...]
/linux-master/tools/testing/selftests/net/forwarding/
H A Dtc_flower.sh44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
96 tc filter add dev $h2 ingress protocol i
[all...]
H A Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
128 tc chain add dev $h2 ingress protocol ip \
130 tc chain add dev $h2 ingress chain 1 protocol i
[all...]
H A Dtc_actions.sh59 local protocol=$2
65 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
74 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
84 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
86 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
95 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
104 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
116 tc filter del dev $swp1 ingress protocol i
[all...]
/linux-master/net/netfilter/ipset/
H A Dip_set_getport.c25 get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, argument
28 switch (protocol) {
92 *proto = protocol;
103 int protocol = iph->protocol; local
106 if (protocol <= 0)
110 switch (protocol) {
122 *proto = protocol;
126 return get_port(skb, protocol, protooff, src, port, proto);
/linux-master/sound/firewire/motu/
H A DMakefile6 motu-protocol-v2.o motu-protocol-v3.o \
7 motu-protocol-v1.o motu-register-dsp-message-parser.o \
/linux-master/include/net/
H A Dfou.h16 u8 *protocol, __be16 *sport, int type);
18 u8 *protocol, __be16 *sport, int type);
/linux-master/security/selinux/
H A Dnetport.c75 * @protocol: protocol
83 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) argument
90 if (port->psec.port == pnum && port->psec.protocol == protocol)
127 * @protocol: protocol
137 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) argument
144 port = sel_netport_find(protocol, pnum);
151 ret = security_port_sid(protocol, pnu
183 sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) argument
[all...]
/linux-master/drivers/usb/gadget/function/
H A Du_hid.h22 unsigned char protocol; member in struct:f_hid_opts

Completed in 271 milliseconds

1234567891011>>