Home
last modified time | relevance | path

Searched refs:ver (Results 1 – 19 of 19) sorted by relevance

/net/ipv4/
Dgre_demux.c149 u8 ver; in gre_rcv() local
155 ver = skb->data[1]&0x7f; in gre_rcv()
156 if (ver >= GREPROTO_MAX) in gre_rcv()
160 proto = rcu_dereference(gre_proto[ver]); in gre_rcv()
178 u8 ver = skb->data[(iph->ihl<<2) + 1]&0x7f; in gre_err() local
181 if (ver >= GREPROTO_MAX) in gre_err()
185 proto = rcu_dereference(gre_proto[ver]); in gre_err()
Dip_tunnel_core.c540 u8 ver; in ip_tun_parse_opts_erspan() local
550 ver = nla_get_u8(tb[LWTUNNEL_IP_OPT_ERSPAN_VER]); in ip_tun_parse_opts_erspan()
551 if (ver == 1) { in ip_tun_parse_opts_erspan()
554 } else if (ver == 2) { in ip_tun_parse_opts_erspan()
566 md->version = ver; in ip_tun_parse_opts_erspan()
567 if (ver == 1) { in ip_tun_parse_opts_erspan()
Dip_gre.c272 int ver; in erspan_rcv() local
278 ver = 0; in erspan_rcv()
288 ver = ershdr->ver; in erspan_rcv()
299 len = gre_hdr_len + erspan_hdr_len(ver); in erspan_rcv()
335 md->version = ver; in erspan_rcv()
337 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in erspan_rcv()
/net/dsa/
Dtag_ar9331.c51 u8 ver, port; in ar9331_tag_rcv() local
59 ver = FIELD_GET(AR9331_HDR_VERSION_MASK, hdr); in ar9331_tag_rcv()
60 if (unlikely(ver != AR9331_HDR_VERSION)) { in ar9331_tag_rcv()
Dtag_qca.c41 u8 ver, pk_type; in qca_tag_rcv() local
57 ver = FIELD_GET(QCA_HDR_RECV_VERSION, hdr); in qca_tag_rcv()
58 if (unlikely(ver != QCA_HDR_VERSION)) in qca_tag_rcv()
/net/mctp/test/
Droute-test.c142 hdr.ver = 1; in mctp_test_fragment()
178 KUNIT_EXPECT_EQ(test, hdr2->ver, hdr.ver); in mctp_test_fragment()
263 { .ver = _ver, .src = _src, .dest = _dest, .flags_seq_tag = _fst }
275 sprintf(desc, "{%x,%x,%x,%x}", t->hdr.ver, t->hdr.src, t->hdr.dest, in mctp_rx_input_test_to_desc()
387 sprintf(desc, "{%x,%x,%x,%x} type %d", t->hdr.ver, t->hdr.src, in mctp_route_input_sk_to_desc()
/net/bridge/
Dbr_vlan_options.c530 u8 ver; in br_vlan_process_global_one_opts() local
532 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION]); in br_vlan_process_global_one_opts()
533 err = br_multicast_set_igmp_version(&v->br_mcast_ctx, ver); in br_vlan_process_global_one_opts()
605 u8 ver; in br_vlan_process_global_one_opts() local
607 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION]); in br_vlan_process_global_one_opts()
608 err = br_multicast_set_mld_version(&v->br_mcast_ctx, ver); in br_vlan_process_global_one_opts()
/net/hsr/
Dhsr_main.c134 int hsr_get_version(struct net_device *dev, enum hsr_version *ver) in hsr_get_version() argument
139 *ver = hsr->prot_version; in hsr_get_version()
/net/sched/
Dact_tunnel_key.c172 u8 ver; in tunnel_key_copy_erspan_opt() local
184 ver = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER]); in tunnel_key_copy_erspan_opt()
185 if (ver == 1) { in tunnel_key_copy_erspan_opt()
190 } else if (ver == 2) { in tunnel_key_copy_erspan_opt()
204 md->version = ver; in tunnel_key_copy_erspan_opt()
205 if (ver == 1) { in tunnel_key_copy_erspan_opt()
/net/ipv6/
Dip6_gre.c529 u8 ver; in ip6erspan_rcv() local
536 ver = ershdr->ver; in ip6erspan_rcv()
542 int len = erspan_hdr_len(ver); in ip6erspan_rcv()
579 md->version = ver; in ip6erspan_rcv()
581 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in ip6erspan_rcv()
1706 int ret, ver = 0; in ip6erspan_tap_validate() local
1736 ver = nla_get_u8(data[IFLA_GRE_ERSPAN_VER]); in ip6erspan_tap_validate()
1737 if (ver != 1 && ver != 2) in ip6erspan_tap_validate()
1741 if (ver == 1) { in ip6erspan_tap_validate()
1748 } else if (ver == 2) { in ip6erspan_tap_validate()
/net/mctp/
Droute.c350 if (mh->ver != 1) in mctp_route_input()
829 hdr2->ver = hdr->ver; in mctp_do_fragment_route()
959 hdr->ver = 1; in mctp_local_output()
1123 if (mh->ver < MCTP_VER_MIN || mh->ver > MCTP_VER_MAX) in mctp_pkttype_receive()
/net/packet/
Ddiag.c72 static int pdiag_put_ring(struct packet_ring_buffer *ring, int ver, int nl_type, in pdiag_put_ring() argument
85 if (ver > TPACKET_V2) { in pdiag_put_ring()
/net/bluetooth/
Dhci_sock.c557 u8 ver[3]; in create_monitor_ctrl_open() local
567 ver[0] = BT_SUBSYS_VERSION; in create_monitor_ctrl_open()
568 put_unaligned_le16(BT_SUBSYS_REVISION, ver + 1); in create_monitor_ctrl_open()
572 ver[0] = BT_SUBSYS_VERSION; in create_monitor_ctrl_open()
573 put_unaligned_le16(BT_SUBSYS_REVISION, ver + 1); in create_monitor_ctrl_open()
577 mgmt_fill_version_info(ver); in create_monitor_ctrl_open()
594 skb_put_data(skb, ver, sizeof(ver)); in create_monitor_ctrl_open()
Dmgmt.c358 void mgmt_fill_version_info(void *ver) in mgmt_fill_version_info() argument
360 struct mgmt_rp_read_version *rp = ver; in mgmt_fill_version_info()
/net/qrtr/
Daf_qrtr.c444 unsigned int ver; in qrtr_endpoint_post() local
457 ver = *(u8*)data; in qrtr_endpoint_post()
459 switch (ver) { in qrtr_endpoint_post()
496 pr_err("qrtr: Invalid version %d\n", ver); in qrtr_endpoint_post()
/net/openvswitch/
Dflow_table.c533 int ver; in ovs_flow_tbl_dump_next() local
536 ver = ti->node_ver; in ovs_flow_tbl_dump_next()
540 hlist_for_each_entry_rcu(flow, head, flow_table.node[ver]) { in ovs_flow_tbl_dump_next()
/net/ncsi/
Dncsi-pkt.h175 unsigned char ver; /* Payload Version */ member
/net/core/
Dflow_dissector.c1002 return hdr->ver == 1 && hdr->type == 1 && hdr->code == 0; in is_pppoe_ses_hdr_valid()
/net/ceph/
Dosd_client.c1015 dst->watch.ver = cpu_to_le64(0); in osd_req_encode_op()
1053 dst->assert_ver.ver = cpu_to_le64(src->assert_ver.ver); in osd_req_encode_op()