Home
last modified time | relevance | path

Searched refs:ver (Results 1 – 17 of 17) 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()
284 ver = ershdr->ver; in erspan_rcv()
294 len = gre_hdr_len + erspan_hdr_len(ver); in erspan_rcv()
330 md->version = ver; in erspan_rcv()
332 memcpy(md2, pkt_md, ver == 1 ? ERSPAN_V1_MDSIZE : in erspan_rcv()
/net/dsa/
Dtag_ar9331.c49 u8 ver, port; in ar9331_tag_rcv() local
57 ver = FIELD_GET(AR9331_HDR_VERSION_MASK, hdr); in ar9331_tag_rcv()
58 if (unlikely(ver != AR9331_HDR_VERSION)) { in ar9331_tag_rcv()
Dtag_qca.c53 u8 ver; in qca_tag_rcv() local
65 ver = (hdr & QCA_HDR_RECV_VERSION_MASK) >> QCA_HDR_RECV_VERSION_S; in qca_tag_rcv()
66 if (unlikely(ver != QCA_HDR_VERSION)) in qca_tag_rcv()
/net/bridge/
Dbr_vlan_options.c477 u8 ver; in br_vlan_process_global_one_opts() local
479 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION]); in br_vlan_process_global_one_opts()
480 err = br_multicast_set_igmp_version(&v->br_mcast_ctx, ver); in br_vlan_process_global_one_opts()
552 u8 ver; in br_vlan_process_global_one_opts() local
554 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION]); in br_vlan_process_global_one_opts()
555 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.c171 u8 ver; in tunnel_key_copy_erspan_opt() local
183 ver = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER]); in tunnel_key_copy_erspan_opt()
184 if (ver == 1) { in tunnel_key_copy_erspan_opt()
189 } else if (ver == 2) { in tunnel_key_copy_erspan_opt()
203 md->version = ver; in tunnel_key_copy_erspan_opt()
204 if (ver == 1) { in tunnel_key_copy_erspan_opt()
/net/mctp/
Droute.c249 if (mh->ver != 1) in mctp_route_input()
648 hdr2->ver = hdr->ver; in mctp_do_fragment_route()
729 hdr->ver = 1; in mctp_local_output()
875 if (mh->ver < MCTP_VER_MIN || mh->ver > MCTP_VER_MAX) in mctp_pkttype_receive()
/net/ipv6/
Dip6_gre.c534 u8 ver; in ip6erspan_rcv() local
538 ver = ershdr->ver; in ip6erspan_rcv()
544 int len = erspan_hdr_len(ver); in ip6erspan_rcv()
581 md->version = ver; in ip6erspan_rcv()
583 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/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.c507 u8 ver[3]; in create_monitor_ctrl_open() local
517 ver[0] = BT_SUBSYS_VERSION; in create_monitor_ctrl_open()
518 put_unaligned_le16(BT_SUBSYS_REVISION, ver + 1); in create_monitor_ctrl_open()
522 ver[0] = BT_SUBSYS_VERSION; in create_monitor_ctrl_open()
523 put_unaligned_le16(BT_SUBSYS_REVISION, ver + 1); in create_monitor_ctrl_open()
527 mgmt_fill_version_info(ver); in create_monitor_ctrl_open()
542 skb_put_data(skb, ver, sizeof(ver)); in create_monitor_ctrl_open()
Dmgmt.c315 void mgmt_fill_version_info(void *ver) in mgmt_fill_version_info() argument
317 struct mgmt_rp_read_version *rp = ver; in mgmt_fill_version_info()
/net/qrtr/
Daf_qrtr.c442 unsigned int ver; in qrtr_endpoint_post() local
455 ver = *(u8*)data; in qrtr_endpoint_post()
457 switch (ver) { in qrtr_endpoint_post()
494 pr_err("qrtr: Invalid version %d\n", ver); in qrtr_endpoint_post()
/net/openvswitch/
Dflow_table.c532 int ver; in ovs_flow_tbl_dump_next() local
535 ver = ti->node_ver; in ovs_flow_tbl_dump_next()
539 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/ceph/
Dosd_client.c984 dst->watch.ver = cpu_to_le64(0); in osd_req_encode_op()