Searched defs:protocol (Results 1 - 25 of 75) sorted by relevance

123

/net/ipv4/
H A Dprotocol.c2 * INET An implementation of the TCP/IP protocol suite for the LINUX
6 * INET protocol dispatch tables.
29 #include <net/protocol.h>
35 * Add a protocol handler to the hash tables
38 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) argument
42 protocol);
46 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol],
51 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) argument
53 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol],
59 * Remove a protocol fro
62 inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) argument
75 inet_del_offload(const struct net_offload *prot, unsigned char protocol) argument
[all...]
H A Dgre.c24 #include <net/protocol.h>
124 __be16 protocol = skb->protocol; local
153 skb->protocol = greh->protocol;
197 skb->protocol = protocol;
228 pr_err("can't add protocol\n");
233 pr_err("can't add protocol offload\n");
H A Dip_input.c2 * INET An implementation of the TCP/IP protocol suite for the LINUX
136 #include <net/protocol.h>
155 u8 protocol = ip_hdr(skb)->protocol; local
165 if (sk && inet_sk(sk)->inet_num == protocol &&
200 int protocol = ip_hdr(skb)->protocol; local
205 raw = raw_local_deliver(skb, protocol);
207 ipprot = rcu_dereference(inet_protos[protocol]);
220 protocol
321 int protocol = iph->protocol; local
[all...]
H A Dnetfilter.c125 unsigned int dataoff, u_int8_t protocol)
134 if ((protocol == 0 && !csum_fold(skb->csum)) ||
136 skb->len - dataoff, protocol,
143 if (protocol == 0)
148 protocol, 0);
157 u_int8_t protocol)
165 return nf_ip_checksum(skb, hook, dataoff, protocol);
168 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol,
124 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u_int8_t protocol) argument
155 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u_int8_t protocol) argument
/net/ipv6/
H A Dprotocol.c2 * INET An implementation of the TCP/IP protocol suite for the LINUX
6 * PF_INET6 protocol dispatch tables.
26 #include <net/protocol.h>
32 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) argument
34 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
40 * Remove a protocol from the hash tables.
43 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) argument
47 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol],
59 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) argument
61 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
66 inet6_del_offload(const struct net_offload *prot, unsigned char protocol) argument
[all...]
H A Dnetfilter.c132 unsigned int dataoff, u_int8_t protocol)
142 skb->len - dataoff, protocol,
154 protocol,
166 u_int8_t protocol)
175 return nf_ip6_checksum(skb, hook, dataoff, protocol);
182 protocol,
131 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u_int8_t protocol) argument
164 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u_int8_t protocol) argument
/net/atm/
H A Dpvc.c132 static int pvc_create(struct net *net, struct socket *sock, int protocol, argument
139 return vcc_create(net, sock, protocol, PF_ATMPVC);
150 * Initialize the ATM PVC protocol family
H A Dsvc.c30 static int svc_create(struct net *net, struct socket *sock, int protocol,
656 static int svc_create(struct net *net, struct socket *sock, int protocol, argument
665 error = vcc_create(net, sock, protocol, AF_ATMSVC);
681 * Initialize the ATM SVC protocol family
/net/ax25/
H A Dax25_iface.c60 struct ax25_protocol *protocol; local
63 protocol = protocol_list;
64 if (protocol == NULL)
67 if (protocol->pid == pid) {
68 protocol_list = protocol->next;
72 while (protocol != NULL && protocol->next != NULL) {
73 if (protocol->next->pid == pid) {
74 protocol->next = protocol
164 struct ax25_protocol *protocol; local
205 struct ax25_protocol *protocol; local
[all...]
/net/bluetooth/bnep/
H A Dsock.c188 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol, argument
210 sk->sk_protocol = protocol;
/net/bluetooth/cmtp/
H A Dsock.c198 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol, argument
220 sk->sk_protocol = protocol;
/net/netfilter/ipset/
H A Dip_set_getport.c24 get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, argument
27 switch (protocol) {
91 *proto = protocol;
102 int protocol = iph->protocol; local
105 if (protocol <= 0 || (ntohs(iph->frag_off) & IP_OFFSET))
108 return get_port(skb, protocol, protooff, src, port, proto);
/net/netlink/
H A Ddiag.c101 int protocol, int s_num)
103 struct netlink_table *tbl = &nl_table[protocol];
156 cb->args[1] = protocol;
100 __netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, int protocol, int s_num) argument
/net/nfc/nci/
H A Dntf.c2 * The NFC Controller Interface is the communication protocol between an
168 __u32 protocol; local
171 protocol = NFC_PROTO_MIFARE_MASK;
174 protocol = NFC_PROTO_ISO14443_MASK;
176 protocol = NFC_PROTO_ISO14443_B_MASK;
178 protocol = NFC_PROTO_FELICA_MASK;
180 protocol = NFC_PROTO_NFC_DEP_MASK;
182 protocol = 0;
184 if (!(protocol & ndev->poll_prots)) {
185 pr_err("the target found does not have the desired protocol\
[all...]
/net/phonet/
H A Dpep-gprs.c92 __be16 protocol = gprs_type_trans(skb); local
94 if (!protocol) {
129 skb->protocol = protocol;
192 switch (skb->protocol) {
H A Daf_phonet.c37 /* Transport protocol registration */
40 static struct phonet_protocol *phonet_proto_get(unsigned int protocol) argument
44 if (protocol >= PHONET_NPROTO)
48 pp = rcu_dereference(proto_tab[protocol]);
61 /* protocol family functions */
63 static int pn_socket_create(struct net *net, struct socket *sock, int protocol, argument
74 if (protocol == 0) {
75 /* Default protocol selection */
78 protocol = PN_PROTO_PHONET;
81 protocol
467 phonet_proto_register(unsigned int protocol, struct phonet_protocol *pp) argument
490 phonet_proto_unregister(unsigned int protocol, struct phonet_protocol *pp) argument
[all...]
/net/8021q/
H A Dvlan.c126 __be16 protocol, u16 vlan_id)
135 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL)
125 vlan_check_real_dev(struct net_device *real_dev, __be16 protocol, u16 vlan_id) argument
/net/bluetooth/hidp/
H A Dsock.c228 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol, argument
250 sk->sk_protocol = protocol;
/net/bridge/netfilter/
H A Debt_log.c54 print_ports(const struct sk_buff *skb, uint8_t protocol, int offset) argument
56 if (protocol == IPPROTO_TCP ||
57 protocol == IPPROTO_UDP ||
58 protocol == IPPROTO_UDPLITE ||
59 protocol == IPPROTO_SCTP ||
60 protocol == IPPROTO_DCCP) {
109 &ih->saddr, &ih->daddr, ih->tos, ih->protocol);
110 print_ports(skb, ih->protocol, ih->ihl*4);
/net/can/
H A Daf_can.c3 * (used by different CAN protocol modules)
118 static const struct can_proto *can_get_proto(int protocol) argument
123 cp = rcu_dereference(proto_tab[protocol]);
136 static int can_create(struct net *net, struct socket *sock, int protocol, argument
145 if (protocol < 0 || protocol >= CAN_NPROTO)
151 cp = can_get_proto(protocol);
155 /* try to load protocol module if kernel is modular */
157 err = request_module("can-proto-%d", protocol);
166 "(can-proto-%d) failed.\n", protocol);
[all...]
/net/ceph/
H A Dauth.c16 * get protocol handler
23 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) argument
25 switch (protocol) {
98 * Initiate protocol negotiation with monitor. Include entity name
114 ceph_encode_32(&p, 0); /* no protocol, yet */
156 ceph_encode_32(&p, ac->protocol);
180 int protocol; local
192 protocol = ceph_decode_32(&p);
217 if (!protocol && result < 0) {
221 /* set up (new) protocol handle
[all...]
/net/ieee802154/
H A Daf_ieee802154.c244 int protocol, int kern)
243 ieee802154_create(struct net *net, struct socket *sock, int protocol, int kern) argument
/net/netfilter/
H A Dxt_socket.c50 u8 *protocol,
83 if (inside_iph->protocol != IPPROTO_TCP &&
84 inside_iph->protocol != IPPROTO_UDP)
96 *protocol = inside_iph->protocol;
113 u8 uninitialized_var(protocol);
119 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) {
125 protocol = iph->protocol;
49 extract_icmp4_fields(const struct sk_buff *skb, u8 *protocol, __be32 *raddr, __be32 *laddr, __be16 *rport, __be16 *lport) argument
217 extract_icmp6_fields(const struct sk_buff *skb, unsigned int outside_hdrlen, int *protocol, struct in6_addr **raddr, struct in6_addr **laddr, __be16 *rport, __be16 *lport) argument
[all...]
/net/netlabel/
H A Dnetlabel_mgmt.c51 /* NetLabel configured protocol counter */
121 * to pass that as a protocol value because we need to know the
122 * "real" protocol */
601 * @protocol: the NetLabel protocol to use in the message
611 u32 protocol)
622 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, protocol);
609 netlbl_mgmt_protocols_cb(struct sk_buff *skb, struct netlink_callback *cb, u32 protocol) argument
/net/rds/
H A Daf_rds.c156 * a network protocol.
409 static int __rds_create(struct socket *sock, struct sock *sk, int protocol) argument
415 sk->sk_protocol = protocol;
435 static int rds_create(struct net *net, struct socket *sock, int protocol, argument
440 if (sock->type != SOCK_SEQPACKET || protocol)
447 return __rds_create(sock, sk, protocol);

Completed in 300 milliseconds

123