/linux-master/net/netfilter/ |
H A D | nft_compat.c | 146 union nft_entry *entry, u16 proto, bool inv) 152 entry->e4.ip.proto = proto; 156 if (proto) 159 entry->e6.ipv6.proto = proto; 163 entry->ebt.ethproto = (__force __be16)proto; 200 static int nft_parse_compat(const struct nlattr *attr, u16 *proto, bool *inv) argument 226 *proto = l4proto; 250 u16 proto local 143 nft_target_set_tgchk_param(struct xt_tgchk_param *par, const struct nft_ctx *ctx, struct xt_target *target, void *info, union nft_entry *entry, u16 proto, bool inv) argument 445 nft_match_set_mtchk_param(struct xt_mtchk_param *par, const struct nft_ctx *ctx, struct xt_match *match, void *info, union nft_entry *entry, u16 proto, bool inv) argument 504 u16 proto = 0; local [all...] |
H A D | xt_l2tp.c | 270 if ((ip->proto != IPPROTO_UDP) && 271 (ip->proto != IPPROTO_L2TP)) { 276 if ((ip->proto == IPPROTO_L2TP) && 297 if ((ip->proto != IPPROTO_UDP) && 298 (ip->proto != IPPROTO_L2TP)) { 303 if ((ip->proto == IPPROTO_L2TP) &&
|
H A D | nf_conntrack_proto_gre.c | 175 pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol)); 191 (ct->proto.gre.timeout / HZ), 192 (ct->proto.gre.stream_timeout / HZ)); 218 ct->proto.gre.stream_timeout = timeouts[GRE_CT_REPLIED]; 219 ct->proto.gre.timeout = timeouts[GRE_CT_UNREPLIED]; 227 ct->proto.gre.stream_timeout); 238 ct->proto.gre.timeout);
|
/linux-master/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ipsec.c | 30 sam->proto = xs->id.proto; 171 * @proto: protocol to match 179 __be32 *daddr, u8 proto, 192 proto == rsa->xs->id.proto) { 274 if (xs->id.proto != IPPROTO_ESP && xs->id.proto != IPPROTO_AH) { 309 if (rsa.xs->id.proto & IPPROTO_ESP) 326 if (rsa.xs->id.proto 178 ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, __be32 *daddr, u8 proto, __be32 spi, bool ip4) argument 572 u8 proto; local [all...] |
/linux-master/drivers/net/ppp/ |
H A D | pptp.c | 49 static struct proto pptp_sk_proto __read_mostly; 61 opt = &sock->proto.pptp; 84 opt = &sock->proto.pptp; 112 sock->proto.pptp.src_addr = *sa; 127 clear_bit(sock->proto.pptp.src_addr.call_id, callid_bitmap); 128 RCU_INIT_POINTER(callid_sock[sock->proto.pptp.src_addr.call_id], NULL); 141 po->proto.pptp.dst_addr.sin_addr.s_addr, 142 po->proto.pptp.src_addr.sin_addr.s_addr, 154 struct pptp_opt *opt = &po->proto.pptp; 272 struct pptp_opt *opt = &po->proto [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 218 static void encap_init(encap_headers_t *encap, uint8_t hop_count, uint8_t proto) argument 236 .proto_ctype = proto 255 int proto; local 257 proto = IPPROTO_IPIP; 259 proto = IPPROTO_IPV6; 261 encap_init(&encap, test->hops == ONE_HOP ? 1 : 0, proto); 269 proto = IPPROTO_TCP; 271 proto = IPPROTO_UDP; 279 .protocol = proto, 289 .nexthdr = proto, [all...] |
/linux-master/fs/smb/server/ |
H A D | smb_common.c | 161 __le32 *proto; local 166 proto = (__le32 *)smb2_get_msg(conn->request_buf); 167 if (*proto == SMB2_COMPRESSION_TRANSFORM_ID) { 172 if (*proto != SMB1_PROTO_NUMBER && 173 *proto != SMB2_PROTO_NUMBER && 174 *proto != SMB2_TRANSFORM_PROTO_NUM) 262 __le32 proto = ((struct smb2_hdr *)smb2_get_msg(buf))->ProtocolId; local 264 if (proto == SMB2_PROTO_NUMBER) { 281 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol; 282 if (proto 411 __le32 proto; local [all...] |
/linux-master/drivers/net/netdevsim/ |
H A D | ipsec.c | 47 "sa[%i] spi=0x%08x proto=0x%x salt=0x%08x crypt=%d\n", 49 sap->xs->id.proto, sap->salt, sap->crypt); 142 if (xs->id.proto != IPPROTO_ESP && xs->id.proto != IPPROTO_AH) { 169 if (sa.xs->id.proto & IPPROTO_ESP) 270 if (xs->id.proto != IPPROTO_ESP && xs->id.proto != IPPROTO_AH) { 271 netdev_err(ns->netdev, "unexpected proto=%d\n", xs->id.proto);
|
/linux-master/net/ipv4/netfilter/ |
H A D | nf_reject_ipv4.c | 85 u8 proto; local 104 proto = ip_hdr(oldskb)->protocol; 107 nf_reject_verify_csum(oldskb, dataoff, proto) && 108 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) 321 u8 proto = iph->protocol; local 331 !nf_reject_verify_csum(skb_in, dataoff, proto)) { 336 if (nf_ip_checksum(skb_in, hook, dataoff, proto) == 0)
|
/linux-master/net/xfrm/ |
H A D | xfrm_state.c | 77 __be32 spi, u8 proto, unsigned short family) 79 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); 131 x->id.proto, x->props.family, 237 switch (type->proto) { 282 switch (type->proto) { 313 static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family) argument 324 switch (proto) { 356 request_module("xfrm-type-%d-%d", family, proto); 378 switch (type->proto) { 402 switch (type->proto) { 76 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 416 xfrm_get_type_offload(u8 proto, unsigned short family, bool try_load) argument 751 xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid) argument 794 xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid) argument 806 xfrm_state_flush(struct net *net, u8 proto, bool task_valid, bool sync) argument 977 __xfrm_state_lookup_all(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family, struct xfrm_dev_offload *xdo) argument 1020 __xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 1045 __xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) argument 1363 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid) argument 1493 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) argument 1982 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 1995 xfrm_state_lookup_byaddr(struct net *net, u32 mark, const xfrm_address_t *daddr, const xfrm_address_t *saddr, u8 proto, unsigned short family) argument 2009 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) argument 2192 verify_spi_info(u8 proto, u32 min, u32 max, struct netlink_ext_ack *extack) argument 2344 xfrm_state_walk_init(struct xfrm_state_walk *walk, u8 proto, struct xfrm_address_filter *filter) argument 2512 km_report(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr) argument 3098 xfrm_audit_state_icvfail(struct xfrm_state *x, struct sk_buff *skb, u8 proto) argument [all...] |
/linux-master/net/ceph/ |
H A D | auth.c | 24 static int init_protocol(struct ceph_auth_client *ac, int proto) argument 26 dout("%s proto %d\n", __func__, proto); 28 switch (proto) { 34 pr_err("bad auth protocol %d\n", proto); 311 int *proto, int *pref_mode, int *fallb_mode) 329 *proto = ac->protocol; 429 int proto = ac->key ? CEPH_AUTH_CEPHX : CEPH_AUTH_NONE; local 437 ret = init_protocol(ac, proto); 440 ceph_auth_proto_name(proto), re 308 __ceph_auth_get_authorizer(struct ceph_auth_client *ac, struct ceph_auth_handshake *auth, int peer_type, bool force_new, int *proto, int *pref_mode, int *fallb_mode) argument 553 int proto; local [all...] |
/linux-master/drivers/s390/net/ |
H A D | qeth_l3_main.c | 46 int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr, argument 49 if (proto == QETH_PROT_IPV4) 101 (addr->proto == QETH_PROT_IPV4) ? 4 : 16); 103 if (addr->proto != ipatoe->proto) 106 (ipatoe->proto == QETH_PROT_IPV4) ? 113 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) 115 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) 134 if (tmp_addr->proto == QETH_PROT_IPV4) 171 if (tmp_addr->proto 562 qeth_l3_del_ipato_entry(struct qeth_card *card, enum qeth_prot_versions proto, u8 *addr, unsigned int mask_bits) argument 591 qeth_l3_modify_rxip_vipa(struct qeth_card *card, bool add, const u8 *ip, enum qeth_ip_types type, enum qeth_prot_versions proto) argument 1565 qeth_l3_get_cast_type_rcu(struct sk_buff *skb, struct dst_entry *dst, __be16 proto) argument 1602 qeth_l3_get_cast_type(struct sk_buff *skb, __be16 proto) argument 1626 qeth_l3_fill_header(struct qeth_qdio_out_q *queue, struct qeth_hdr *hdr, struct sk_buff *skb, __be16 proto, unsigned int data_len) argument 1710 qeth_l3_xmit(struct qeth_card *card, struct sk_buff *skb, struct qeth_qdio_out_q *queue, __be16 proto) argument 1732 __be16 proto = vlan_get_protocol(skb); local 1823 __be16 proto = vlan_get_protocol(skb); local [all...] |
/linux-master/include/net/ |
H A D | gro.h | 43 u16 proto; member in struct:napi_gro_cb 197 int proto) 202 skb_gro_len(skb), proto, 0); 263 #define __skb_gro_checksum_validate(skb, proto, zero_okay, check, \ 269 compute_pseudo(skb, proto)); \ 275 #define skb_gro_checksum_validate(skb, proto, compute_pseudo) \ 276 __skb_gro_checksum_validate(skb, proto, false, 0, compute_pseudo) 278 #define skb_gro_checksum_validate_zero_check(skb, proto, check, \ 280 __skb_gro_checksum_validate(skb, proto, true, check, compute_pseudo) 298 #define skb_gro_checksum_try_convert(skb, proto, compute_pseud 196 inet_gro_compute_pseudo(const struct sk_buff *skb, int proto) argument 435 ip6_gro_compute_pseudo(const struct sk_buff *skb, int proto) argument [all...] |
H A D | xfrm.h | 47 #define MODULE_ALIAS_XFRM_TYPE(family, proto) \ 48 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto)) 49 #define MODULE_ALIAS_XFRM_OFFLOAD_TYPE(family, proto) \ 50 MODULE_ALIAS("xfrm-offload-" __stringify(family) "-" __stringify(proto)) 96 2. ->id.proto Protocol: AH/ESP/IPCOMP 108 with appropriate mode/proto/algo, permitted by selector. 126 u8 proto; member in struct:xfrm_state_walk 319 u32 proto; member in union:km_event::__anon2862 379 u8 proto; member in struct:xfrm_state_afinfo 417 u8 proto; member in struct:xfrm_type 438 u8 proto; member in struct:xfrm_type_offload 574 u8 proto; member in struct:xfrm_migrate 781 xfrm_audit_state_icvfail(struct xfrm_state *x, struct sk_buff *skb, u8 proto) argument 1056 __u8 proto; member in struct:xfrm_offload 1422 xfrm_id_proto_valid(u8 proto) argument 1439 xfrm_id_proto_match(u8 proto, u8 userproto) argument 2168 int proto; local [all...] |
/linux-master/net/handshake/ |
H A D | handshake-test.c | 35 struct handshake_proto *proto; member in struct:handshake_req_alloc_test_param 73 .desc = "handshake_req_alloc NULL proto", 74 .proto = NULL, 80 .proto = &handshake_req_alloc_proto_2, 86 .proto = &handshake_req_alloc_proto_3, 92 .proto = &handshake_req_alloc_proto_4, 98 .proto = &handshake_req_alloc_proto_5, 104 .proto = &handshake_req_alloc_proto_6, 110 .proto = &handshake_req_alloc_proto_good, 135 result = handshake_req_alloc(param->proto, para [all...] |
H A D | netlink.c | 32 * @proto: handshake protocol 37 int handshake_genl_notify(struct net *net, const struct handshake_proto *proto, argument 44 if (!test_bit(HANDSHAKE_F_PROTO_NOTIFY, &proto->hp_flags)) 48 proto->hp_handler_class)) 61 proto->hp_handler_class) < 0) { 68 0, proto->hp_handler_class, flags);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | disp.c | 144 info->proto = nvbios_rd08(bios, data + 0x00); 153 nvbios_ocfg_match(struct nvkm_bios *bios, u16 outp, u8 proto, u8 flags, argument 158 if ((info->proto == proto || info->proto == 0xff) &&
|
/linux-master/drivers/net/ethernet/netronome/nfp/abm/ |
H A D | cls.c | 22 __be16 proto, struct netlink_ext_ack *extack) 67 switch (proto) { 172 __be16 proto, struct netlink_ext_ack *extack) 179 if (!nfp_abm_u32_check_knode(alink->abm, knode, proto, extack)) 182 tos_off = proto == htons(ETH_P_IP) ? 16 : 20; 21 nfp_abm_u32_check_knode(struct nfp_abm *abm, struct tc_cls_u32_knode *knode, __be16 proto, struct netlink_ext_ack *extack) argument 170 nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, struct tc_cls_u32_knode *knode, __be16 proto, struct netlink_ext_ack *extack) argument
|
/linux-master/drivers/input/mouse/ |
H A D | psmouse-base.c | 54 module_param_named(proto, psmouse_max_proto, proto_abbrev, 0644); 55 MODULE_PARM_DESC(proto, "Highest protocol extension to probe (bare, imps, exps, any). Useful for KVM switches."); 930 const struct psmouse_protocol *proto; local 932 proto = __psmouse_protocol_by_type(type); 933 if (proto) 934 return proto; 1014 const struct psmouse_protocol *proto; local 1016 proto = __psmouse_protocol_by_type(type); 1017 if (!proto) 1020 if (!psmouse_do_detect(proto 1517 psmouse_switch_protocol(struct psmouse *psmouse, const struct psmouse_protocol *proto) argument 1887 const struct psmouse_protocol *proto, *old_proto; local 2010 const struct psmouse_protocol *proto; local [all...] |
/linux-master/net/ipv4/ |
H A D | tcp_ulp.c | 103 void tcp_update_ulp(struct sock *sk, struct proto *proto, argument 109 icsk->icsk_ulp_ops->update(sk, proto, write_space);
|
/linux-master/arch/arm64/lib/ |
H A D | csum.c | 134 __u32 len, __u8 proto, __wsum csum) 144 sum += (u32)proto << 24; 146 sum += proto; 132 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, __u8 proto, __wsum csum) argument
|
/linux-master/drivers/net/arcnet/ |
H A D | rfc1201.c | 110 switch (soft->proto) { 208 if (soft->proto == ARC_P_ARP) { 389 soft->proto = ARC_P_IP; 392 soft->proto = ARC_P_IPV6; 395 soft->proto = ARC_P_ARP; 398 soft->proto = ARC_P_RARP; 403 soft->proto = ARC_P_IPX; 406 soft->proto = ARC_P_ATALK; 457 excsoft.proto = soft->proto; [all...] |
/linux-master/sound/soc/atmel/ |
H A D | Makefile | 34 snd-soc-mikroe-proto-y := mikroe-proto.o 42 obj-$(CONFIG_SND_SOC_MIKROE_PROTO) += snd-soc-mikroe-proto.o
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_mr_tcam.c | 35 switch (key->proto) { 67 switch (key->proto) { 84 enum mlxsw_sp_l3proto proto) 86 return &mr_tcam->tcam_regions[proto]; 98 tcam_region = mlxsw_sp1_mr_tcam_protocol_region(mr_tcam, key->proto); 116 tcam_region = mlxsw_sp1_mr_tcam_protocol_region(mr_tcam, key->proto); 83 mlxsw_sp1_mr_tcam_protocol_region(struct mlxsw_sp1_mr_tcam *mr_tcam, enum mlxsw_sp_l3proto proto) argument
|
/linux-master/drivers/net/wan/ |
H A D | hdlc_x25.c | 268 static struct hdlc_proto proto = { variable in typeref:struct:hdlc_proto 287 if (dev_to_hdlc(dev)->proto != &proto) 340 result = attach_hdlc_protocol(dev, &proto, 370 register_hdlc_protocol(&proto); 376 unregister_hdlc_protocol(&proto);
|