/net/ipv4/ |
H A D | protocol.c | 2 * 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 D | gre.c | 24 #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 D | ip_input.c | 2 * 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 D | netfilter.c | 125 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 D | protocol.c | 2 * 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 D | netfilter.c | 132 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 D | pvc.c | 132 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 D | svc.c | 30 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 D | ax25_iface.c | 60 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 D | sock.c | 188 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol, argument 210 sk->sk_protocol = protocol;
|
/net/bluetooth/cmtp/ |
H A D | sock.c | 198 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol, argument 220 sk->sk_protocol = protocol;
|
/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 24 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 D | diag.c | 101 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 D | ntf.c | 2 * 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 D | pep-gprs.c | 92 __be16 protocol = gprs_type_trans(skb); local 94 if (!protocol) { 129 skb->protocol = protocol; 192 switch (skb->protocol) {
|
H A D | af_phonet.c | 37 /* 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 D | vlan.c | 126 __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 D | sock.c | 228 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol, argument 250 sk->sk_protocol = protocol;
|
/net/bridge/netfilter/ |
H A D | ebt_log.c | 54 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 D | af_can.c | 3 * (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 D | auth.c | 16 * 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 D | af_ieee802154.c | 244 int protocol, int kern) 243 ieee802154_create(struct net *net, struct socket *sock, int protocol, int kern) argument
|
/net/netfilter/ |
H A D | xt_socket.c | 50 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 D | netlabel_mgmt.c | 51 /* 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 D | af_rds.c | 156 * 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);
|