Home
last modified time | relevance | path

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

/kernel/liteos_a/net/lwip-2.1/enhancement/src/
Ddhcps.c346 u16_t options_len = 0; in handle_discover() local
372 …dhcp_common_option(srvr_msg, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN, &options_len); in handle_discover()
373 dhcp_common_option_byte(srvr_msg, DHCP_OFFER, &options_len); in handle_discover()
376 dhcp_common_option(srvr_msg, DHCP_OPTION_ROUTER, DHCP_OPTION_ROUTER_SIZE, &options_len); in handle_discover()
377 dhcp_common_option_long(srvr_msg, ntohl(ip_2_ip4(&netif->ip_addr)->addr), &options_len); in handle_discover()
380 dhcp_common_option(srvr_msg, DHCP_OPTION_SERVER_ID, DHCP_OPTION_SERVER_ID_LEN, &options_len); in handle_discover()
381 dhcp_common_option_long(srvr_msg, ntohl(ip_2_ip4(&netif->ip_addr)->addr), &options_len); in handle_discover()
383 dhcp_common_option(srvr_msg, DHCP_OPTION_LEASE_TIME, DHCP_OPTION_LEASE_TIME_SIZE, &options_len); in handle_discover()
384 dhcp_common_option_long(srvr_msg, client_lease->proposed_leasetime, &options_len); in handle_discover()
386 dhcp_common_option(srvr_msg, DHCP_OPTION_T1, DHCP_OPTION_T1_LEN, &options_len); in handle_discover()
[all …]
/kernel/linux/linux-5.10/include/net/
Dip_tunnels.h67 options_len) * BITS_PER_BYTE) - 1, 0)
74 u8 options_len; member
478 memcpy(to, info + 1, info->options_len); in ip_tunnel_info_opts_get()
485 info->options_len = len; in ip_tunnel_info_opts_set()
534 info->options_len = 0; in ip_tunnel_info_opts_set()
Ddst_metadata.h84 a->u.tun_info.options_len); in skb_metadata_dst_cmp()
105 tun_dst->u.tun_info.options_len = 0; in tun_rx_dst()
119 md_size = md_dst->u.tun_info.options_len; in tun_dst_unclone()
/kernel/linux/linux-5.10/net/ipv4/
Dip_tunnel_core.c136 res = metadata_dst_alloc(src->options_len, METADATA_IP_TUNNEL, flags); in iptunnel_metadata_reply()
150 src->options_len, 0); in iptunnel_metadata_reply()
722 tun_info->options_len = opt_len; in ip_tun_build_state()
749 while (tun_info->options_len > offset) { in ip_tun_fill_encap_opts_geneve()
877 while (info->options_len > offset) { in ip_tun_opts_nlsize()
922 info_a->options_len != info_b->options_len || in ip_tun_cmp_encap()
924 ip_tunnel_info_opts(info_b), info_a->options_len); in ip_tun_cmp_encap()
1001 tun_info->options_len = opt_len; in ip6_tun_build_state()
Dip_gre.c335 info->options_len = sizeof(*md); in erspan_rcv()
531 if (tun_info->options_len < sizeof(*md)) in erspan_fb_xmit()
/kernel/linux/linux-5.10/include/net/tc_act/
Dtc_tunnel_key.h77 size_t tun_size = sizeof(*tun) + tun->options_len; in tcf_tunnel_info_copy()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_geneve.c19 e->tun_info->options_len; in mlx5e_tc_tun_calc_hlen_geneve()
108 geneveh->opt_len = tun_info->options_len / 4; in mlx5e_gen_ip_tunnel_header_geneve()
/kernel/linux/linux-5.10/drivers/net/
Dbareudp.c307 BAREUDP_IPV4_HLEN + info->options_len, false); in bareudp_xmit_skb()
322 BAREUDP_BASE_HLEN + info->options_len + sizeof(struct iphdr); in bareudp_xmit_skb()
368 skb_tunnel_check_pmtu(skb, dst, BAREUDP_IPV6_HLEN + info->options_len, in bareudp6_xmit_skb()
384 BAREUDP_BASE_HLEN + info->options_len + sizeof(struct ipv6hdr); in bareudp6_xmit_skb()
Dgeneve.c726 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
751 GENEVE_BASE_HLEN + info->options_len + ip_hdr_len; in geneve_build_skb()
760 gnvh = __skb_push(skb, sizeof(*gnvh) + info->options_len); in geneve_build_skb()
906 GENEVE_IPV4_HLEN + info->options_len, in geneve_xmit_skb()
1003 GENEVE_IPV6_HLEN + info->options_len, in geneve6_xmit_skb()
1619 geneve_change_mtu(dev, ldev_mtu - info->options_len); in geneve_link_config()
/kernel/linux/linux-5.10/net/psample/
Dpsample.c219 int tun_opts_len = tun_info->options_len; in __psample_ip_tun_to_nlattr()
311 int tun_opts_len = tun_info->options_len; in psample_tunnel_meta_len()
/kernel/linux/linux-5.10/net/openvswitch/
Dflow.c863 if (tun_info->options_len) { in ovs_flow_key_extract()
864 BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) * in ovs_flow_key_extract()
868 ip_tunnel_info_opts_get(TUN_METADATA_OPTS(key, tun_info->options_len), in ovs_flow_key_extract()
870 key->tun_opts_len = tun_info->options_len; in ovs_flow_key_extract()
Dflow_netlink.c958 tun_info->options_len, in ovs_nla_put_tunnel_info()
3648 tun_info->options_len, in set_action_to_attr()
/kernel/linux/linux-5.10/net/sched/
Dact_tunnel_key.c300 info->options_len = opts_len; in tunnel_key_opts_set()
570 int len = info->options_len; in tunnel_key_geneve_opts_dump()
655 if (!info->options_len) in tunnel_key_opts_dump()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Daction.c343 opt_len = ip_tun->options_len; in nfp_fl_push_geneve_options()
421 if (ip_tun->options_len && in nfp_fl_set_tun()
490 set_tun->tun_len = ip_tun->options_len / 4; in nfp_fl_set_tun()
/kernel/linux/linux-5.10/net/core/
Dflow_dissector.c376 if (info->options_len) { in skb_flow_dissect_tunnel_info()
377 enc_opt->len = info->options_len; in skb_flow_dissect_tunnel_info()
Dfilter.c4299 if (unlikely(size < info->options_len)) { in BPF_CALL_3()
4305 if (size > info->options_len) in BPF_CALL_3()
4306 memset(to + info->options_len, 0, size - info->options_len); in BPF_CALL_3()
4308 return info->options_len; in BPF_CALL_3()
/kernel/linux/linux-5.10/net/ipv6/
Dip6_gre.c586 info->options_len = sizeof(*md); in ip6erspan_rcv()
1009 if (tun_info->options_len < sizeof(*md)) in ip6erspan_tunnel_xmit()
/kernel/linux/linux-5.10/drivers/net/vxlan/
Dvxlan_core.c1751 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
2667 if (info->options_len < sizeof(*md)) in vxlan_xmit_one()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c3769 size_t tun_size = sizeof(*tun_info) + tun_info->options_len; in dup_tun_info()