/kernel/linux/linux-5.10/include/linux/ |
H A D | ppp-comp.h | 37 void *(*comp_alloc) (unsigned char *options, int opt_len); 44 int opt_len, int unit, int opthdr, int debug); 57 void *(*decomp_alloc) (unsigned char *options, int opt_len); 64 int opt_len, int unit, int opthdr, int mru,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | ppp-comp.h | 37 void *(*comp_alloc) (unsigned char *options, int opt_len); 44 int opt_len, int unit, int opthdr, int debug); 57 void *(*decomp_alloc) (unsigned char *options, int opt_len); 64 int opt_len, int unit, int opthdr, int mru,
|
/kernel/linux/linux-5.10/drivers/net/ppp/ |
H A D | bsd_comp.c | 169 static void *bsd_alloc(unsigned char *options, int opt_len, int decomp); 170 static void *bsd_comp_alloc (unsigned char *options, int opt_len); 171 static void *bsd_decomp_alloc (unsigned char *options, int opt_len); 174 int opt_len, int unit, int debug, int decomp); 176 int opt_len, int unit, int opthdr, int debug); 178 int opt_len, int unit, int opthdr, int mru, 352 static void *bsd_alloc (unsigned char *options, int opt_len, int decomp) in bsd_alloc() argument 358 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3 in bsd_alloc() 449 static void *bsd_comp_alloc (unsigned char *options, int opt_len) in bsd_comp_alloc() argument 451 return bsd_alloc (options, opt_len, in bsd_comp_alloc() 454 bsd_decomp_alloc(unsigned char *options, int opt_len) bsd_decomp_alloc() argument 463 bsd_init(void *state, unsigned char *options, int opt_len, int unit, int debug, int decomp) bsd_init() argument 506 bsd_comp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int debug) bsd_comp_init() argument 512 bsd_decomp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int mru, int debug) bsd_decomp_init() argument [all...] |
H A D | ppp_deflate.c | 36 static void *z_comp_alloc(unsigned char *options, int opt_len); 37 static void *z_decomp_alloc(unsigned char *options, int opt_len); 41 int opt_len, 44 int opt_len, 74 * @opt_len: length of the CCP option at @options. 85 static void *z_comp_alloc(unsigned char *options, int opt_len) in z_comp_alloc() argument 90 if (opt_len != CILEN_DEFLATE || in z_comp_alloc() 127 * @opt_len: length of the CCP option data at @options 137 static int z_comp_init(void *arg, unsigned char *options, int opt_len, in z_comp_init() argument 142 if (opt_len < CILEN_DEFLAT in z_comp_init() 302 z_decomp_alloc(unsigned char *options, int opt_len) z_decomp_alloc() argument 352 z_decomp_init(void *arg, unsigned char *options, int opt_len, int unit, int hdrlen, int mru, int debug) z_decomp_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ppp/ |
H A D | bsd_comp.c | 169 static void *bsd_alloc(unsigned char *options, int opt_len, int decomp); 170 static void *bsd_comp_alloc (unsigned char *options, int opt_len); 171 static void *bsd_decomp_alloc (unsigned char *options, int opt_len); 174 int opt_len, int unit, int debug, int decomp); 176 int opt_len, int unit, int opthdr, int debug); 178 int opt_len, int unit, int opthdr, int mru, 352 static void *bsd_alloc (unsigned char *options, int opt_len, int decomp) in bsd_alloc() argument 358 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3 in bsd_alloc() 449 static void *bsd_comp_alloc (unsigned char *options, int opt_len) in bsd_comp_alloc() argument 451 return bsd_alloc (options, opt_len, in bsd_comp_alloc() 454 bsd_decomp_alloc(unsigned char *options, int opt_len) bsd_decomp_alloc() argument 463 bsd_init(void *state, unsigned char *options, int opt_len, int unit, int debug, int decomp) bsd_init() argument 506 bsd_comp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int debug) bsd_comp_init() argument 512 bsd_decomp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int mru, int debug) bsd_decomp_init() argument [all...] |
H A D | ppp_deflate.c | 36 static void *z_comp_alloc(unsigned char *options, int opt_len); 37 static void *z_decomp_alloc(unsigned char *options, int opt_len); 41 int opt_len, 44 int opt_len, 74 * @opt_len: length of the CCP option at @options. 85 static void *z_comp_alloc(unsigned char *options, int opt_len) in z_comp_alloc() argument 90 if (opt_len != CILEN_DEFLATE || in z_comp_alloc() 127 * @opt_len: length of the CCP option data at @options 137 static int z_comp_init(void *arg, unsigned char *options, int opt_len, in z_comp_init() argument 142 if (opt_len < CILEN_DEFLAT in z_comp_init() 301 z_decomp_alloc(unsigned char *options, int opt_len) z_decomp_alloc() argument 351 z_decomp_init(void *arg, unsigned char *options, int opt_len, int unit, int hdrlen, int mru, int debug) z_decomp_init() argument [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | ip_tunnel_core.c | 595 int err, rem, opt_len, opts_len = 0, type = 0; in ip_tun_parse_opts() local 611 opt_len = ip_tun_parse_opts_geneve(nla, info, opts_len, in ip_tun_parse_opts() 613 if (opt_len < 0) in ip_tun_parse_opts() 614 return opt_len; in ip_tun_parse_opts() 615 opts_len += opt_len; in ip_tun_parse_opts() 623 opt_len = ip_tun_parse_opts_vxlan(nla, info, opts_len, in ip_tun_parse_opts() 625 if (opt_len < 0) in ip_tun_parse_opts() 626 return opt_len; in ip_tun_parse_opts() 627 opts_len += opt_len; in ip_tun_parse_opts() 633 opt_len in ip_tun_parse_opts() 668 int err, opt_len; ip_tun_build_state() local 866 int opt_len; ip_tun_opts_nlsize() local 955 int err, opt_len; ip6_tun_build_state() local [all...] |
H A D | cipso_ipv4.c | 1556 u8 opt_len; in cipso_v4_validate() local 1562 opt_len = opt[1]; in cipso_v4_validate() 1563 if (opt_len < 8) { in cipso_v4_validate() 1577 while (opt_iter < opt_len) { in cipso_v4_validate() 1585 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 1590 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate() 1838 u32 opt_len; in cipso_v4_sock_setattr() local 1869 opt_len = (buf_len + 3) & ~3; in cipso_v4_sock_setattr() 1870 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); in cipso_v4_sock_setattr() 1876 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr() 1923 u32 opt_len; cipso_v4_req_setattr() local 2173 u32 opt_len; cipso_v4_skbuff_setattr() local [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | ip_tunnel_core.c | 586 int err, rem, opt_len, opts_len = 0; in ip_tun_parse_opts() local 603 opt_len = ip_tun_parse_opts_geneve(nla, info, opts_len, in ip_tun_parse_opts() 605 if (opt_len < 0) in ip_tun_parse_opts() 606 return opt_len; in ip_tun_parse_opts() 607 opts_len += opt_len; in ip_tun_parse_opts() 615 opt_len = ip_tun_parse_opts_vxlan(nla, info, opts_len, in ip_tun_parse_opts() 617 if (opt_len < 0) in ip_tun_parse_opts() 618 return opt_len; in ip_tun_parse_opts() 619 opts_len += opt_len; in ip_tun_parse_opts() 625 opt_len in ip_tun_parse_opts() 660 int err, opt_len; ip_tun_build_state() local 858 int opt_len; ip_tun_opts_nlsize() local 947 int err, opt_len; ip6_tun_build_state() local [all...] |
H A D | cipso_ipv4.c | 1555 u8 opt_len; in cipso_v4_validate() local 1561 opt_len = opt[1]; in cipso_v4_validate() 1562 if (opt_len < 8) { in cipso_v4_validate() 1576 while (opt_iter < opt_len) { in cipso_v4_validate() 1584 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 1589 if (tag_len > (opt_len - opt_iter)) { in cipso_v4_validate() 1837 u32 opt_len; in cipso_v4_sock_setattr() local 1868 opt_len = (buf_len + 3) & ~3; in cipso_v4_sock_setattr() 1869 opt = kzalloc(sizeof(*opt) + opt_len, GFP_ATOMIC); in cipso_v4_sock_setattr() 1875 opt->opt.optlen = opt_len; in cipso_v4_sock_setattr() 1922 u32 opt_len; cipso_v4_req_setattr() local 2172 u32 opt_len; cipso_v4_skbuff_setattr() local [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_tunnel_key.c | 91 int err, data_len, opt_len; in tunnel_key_copy_geneve_opt() local 118 opt_len = sizeof(struct geneve_opt) + data_len; in tunnel_key_copy_geneve_opt() 122 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt() 135 return opt_len; in tunnel_key_copy_geneve_opt() 221 int err, rem, opt_len, len = nla_len(nla), opts_len = 0, type = 0; in tunnel_key_copy_opts() local 236 opt_len = tunnel_key_copy_geneve_opt(attr, dst, in tunnel_key_copy_opts() 238 if (opt_len < 0) in tunnel_key_copy_opts() 239 return opt_len; in tunnel_key_copy_opts() 240 opts_len += opt_len; in tunnel_key_copy_opts() 246 dst_len -= opt_len; in tunnel_key_copy_opts() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | act_tunnel_key.c | 92 int err, data_len, opt_len; in tunnel_key_copy_geneve_opt() local 119 opt_len = sizeof(struct geneve_opt) + data_len; in tunnel_key_copy_geneve_opt() 123 WARN_ON(dst_len < opt_len); in tunnel_key_copy_geneve_opt() 136 return opt_len; in tunnel_key_copy_geneve_opt() 222 int err, rem, opt_len, len = nla_len(nla), opts_len = 0, type = 0; in tunnel_key_copy_opts() local 237 opt_len = tunnel_key_copy_geneve_opt(attr, dst, in tunnel_key_copy_opts() 239 if (opt_len < 0) in tunnel_key_copy_opts() 240 return opt_len; in tunnel_key_copy_opts() 241 opts_len += opt_len; in tunnel_key_copy_opts() 247 dst_len -= opt_len; in tunnel_key_copy_opts() [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | cipso_ipv4.h | 272 u8 opt_len = opt[1]; in cipso_v4_validate() local 276 if (opt_len < 8) { in cipso_v4_validate() 286 for (opt_iter = 6; opt_iter < opt_len;) { in cipso_v4_validate() 287 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 292 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { in cipso_v4_validate()
|
H A D | geneve.h | 47 u8 opt_len:6; member 54 u8 opt_len:6;
|
/kernel/linux/linux-6.6/include/net/ |
H A D | cipso_ipv4.h | 272 u8 opt_len = opt[1]; in cipso_v4_validate() local 276 if (opt_len < 8) { in cipso_v4_validate() 286 for (opt_iter = 6; opt_iter < opt_len;) { in cipso_v4_validate() 287 if (opt_iter + 1 == opt_len) { in cipso_v4_validate() 292 if ((tag_len == 0) || (tag_len > (opt_len - opt_iter))) { in cipso_v4_validate()
|
H A D | geneve.h | 47 u8 opt_len:6; member 54 u8 opt_len:6;
|
/kernel/linux/linux-5.10/net/dns_resolver/ |
H A D | dns_key.c | 156 int opt_len, opt_nlen; in dns_resolver_preparse() local 161 opt_len = next_opt - opt; in dns_resolver_preparse() 162 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse() 164 opt_len); in dns_resolver_preparse() 168 eq = memchr(opt, '=', opt_len); in dns_resolver_preparse() 175 opt_nlen = opt_len; in dns_resolver_preparse()
|
/kernel/linux/linux-6.6/net/dns_resolver/ |
H A D | dns_key.c | 156 int opt_len, opt_nlen; in dns_resolver_preparse() local 161 opt_len = next_opt - opt; in dns_resolver_preparse() 162 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse() 164 opt_len); in dns_resolver_preparse() 168 eq = memchr(opt, '=', opt_len); in dns_resolver_preparse() 175 opt_nlen = opt_len; in dns_resolver_preparse()
|
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow.h | 39 #define TUN_METADATA_OFFSET(opt_len) \ 40 (sizeof_field(struct sw_flow_key, tun_opts) - opt_len) 41 #define TUN_METADATA_OPTS(flow_key, opt_len) \ 42 ((void *)((flow_key)->tun_opts + TUN_METADATA_OFFSET(opt_len)))
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | flow.h | 52 #define TUN_METADATA_OFFSET(opt_len) \ 53 (sizeof_field(struct sw_flow_key, tun_opts) - opt_len) 54 #define TUN_METADATA_OPTS(flow_key, opt_len) \ 55 ((void *)((flow_key)->tun_opts + TUN_METADATA_OFFSET(opt_len)))
|
/kernel/linux/linux-5.10/lib/zlib_deflate/ |
H A D | deftree.c | 284 s->opt_len = s->static_len = 0L; in init_block() 350 * The length opt_len is updated; static_len is also updated if stree is 391 s->opt_len += (ulg)f * (bits + xbits); in gen_bitlen() 424 s->opt_len += ((long)bits - (long)tree[m].Len) in gen_bitlen() 481 * and corresponding code. The length opt_len is updated; static_len is 520 s->opt_len--; if (stree) s->static_len -= stree[node].Len; in build_tree() 682 /* opt_len now includes the length of the tree representations, except in build_bl_tree() 693 /* Update opt_len to include the bit length tree and counts */ in build_bl_tree() 694 s->opt_len += 3*(max_blindex+1) + 5+5+4; in build_bl_tree() 696 s->opt_len, in build_bl_tree() [all...] |
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | calipso.c | 811 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local 813 if (offset < sizeof(*opt) || offset >= opt_len) in calipso_tlv_len() 817 if (offset + 1 >= opt_len) in calipso_tlv_len() 820 if (offset + tlv_len > opt_len) in calipso_tlv_len() 850 unsigned int opt_len, offset, offset_s = 0, offset_e = 0; in calipso_opt_find() local 853 opt_len = ipv6_optlen(hop); in calipso_opt_find() 856 while (offset < opt_len) { in calipso_opt_find() 888 *end = opt_len; in calipso_opt_find() 1076 int opt_len, len, ret_val = -ENOMSG, offset; in calipso_sock_getattr() local 1085 opt_len in calipso_sock_getattr() [all...] |
/kernel/linux/linux-6.6/lib/zlib_deflate/ |
H A D | deftree.c | 284 s->opt_len = s->static_len = 0L; in init_block() 350 * The length opt_len is updated; static_len is also updated if stree is 391 s->opt_len += (ulg)f * (bits + xbits); in gen_bitlen() 424 s->opt_len += ((long)bits - (long)tree[m].Len) in gen_bitlen() 481 * and corresponding code. The length opt_len is updated; static_len is 520 s->opt_len--; if (stree) s->static_len -= stree[node].Len; in build_tree() 682 /* opt_len now includes the length of the tree representations, except in build_bl_tree() 693 /* Update opt_len to include the bit length tree and counts */ in build_bl_tree() 694 s->opt_len += 3*(max_blindex+1) + 5+5+4; in build_bl_tree() 696 s->opt_len, in build_bl_tree() [all...] |
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | calipso.c | 811 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local 813 if (offset < sizeof(*opt) || offset >= opt_len) in calipso_tlv_len() 817 if (offset + 1 >= opt_len) in calipso_tlv_len() 820 if (offset + tlv_len > opt_len) in calipso_tlv_len() 850 unsigned int opt_len, offset, offset_s = 0, offset_e = 0; in calipso_opt_find() local 853 opt_len = ipv6_optlen(hop); in calipso_opt_find() 856 while (offset < opt_len) { in calipso_opt_find() 888 *end = opt_len; in calipso_opt_find() 1076 int opt_len, len, ret_val = -ENOMSG, offset; in calipso_sock_getattr() local 1085 opt_len in calipso_sock_getattr() [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A D | lowpower_protocol.c | 249 u32 opt_len; in get_dpa_uids() local 260 opt_len = args - buf; in get_dpa_uids() 261 if (opt_len != OPT_LEN) { in get_dpa_uids() 266 data_len = size - (opt_len + 1); in get_dpa_uids()
|