Home
last modified time | relevance | path

Searched refs:array (Results 1 – 9 of 9) sorted by relevance

/net/netfilter/
Dnf_conntrack_ftp.c116 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument
121 memset(array, 0, sizeof(array[0])*array_size); in try_number()
126 array[i] = array[i]*10 + *data - '0'; in try_number()
151 u_int32_t array[6]; in try_rfc959() local
153 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959()
157 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | in try_rfc959()
158 (array[2] << 8) | array[3]); in try_rfc959()
159 cmd->u.tcp.port = htons((array[4] << 8) | array[5]); in try_rfc959()
217 u_int32_t array[4]; in try_eprt() local
220 length = try_number(data + 3, dlen - 3, array, 4, '.', delim); in try_eprt()
[all …]
/net/irda/
Dqos.c165 static inline int value_index(__u32 value, __u32 *array, int size) in value_index() argument
170 if (array[i] == value) in value_index()
181 static inline __u32 index_value(int index, __u32 *array) in index_value() argument
183 return array[index]; in index_value()
223 static inline int value_lower_bits(__u32 value, __u32 *array, int size, __u16 *field) in value_lower_bits() argument
234 if (array[i] >= value) in value_lower_bits()
249 static inline int value_highest_bit(__u32 value, __u32 *array, int size, __u16 *field) in value_highest_bit() argument
257 if (array[i] <= value) in value_highest_bit()
/net/8021q/
Dvlan.c120 struct net_device **array; in vlan_group_prealloc_vid() local
125 array = vg->vlan_devices_arrays[vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_prealloc_vid()
126 if (array != NULL) in vlan_group_prealloc_vid()
130 array = kzalloc(size, GFP_KERNEL); in vlan_group_prealloc_vid()
131 if (array == NULL) in vlan_group_prealloc_vid()
134 vg->vlan_devices_arrays[vlan_id / VLAN_GROUP_ARRAY_PART_LEN] = array; in vlan_group_prealloc_vid()
/net/ipv6/
Daddrconf.c3657 __s32 *array, int bytes) in ipv6_store_devconf() argument
3661 memset(array, 0, bytes); in ipv6_store_devconf()
3662 array[DEVCONF_FORWARDING] = cnf->forwarding; in ipv6_store_devconf()
3663 array[DEVCONF_HOPLIMIT] = cnf->hop_limit; in ipv6_store_devconf()
3664 array[DEVCONF_MTU6] = cnf->mtu6; in ipv6_store_devconf()
3665 array[DEVCONF_ACCEPT_RA] = cnf->accept_ra; in ipv6_store_devconf()
3666 array[DEVCONF_ACCEPT_REDIRECTS] = cnf->accept_redirects; in ipv6_store_devconf()
3667 array[DEVCONF_AUTOCONF] = cnf->autoconf; in ipv6_store_devconf()
3668 array[DEVCONF_DAD_TRANSMITS] = cnf->dad_transmits; in ipv6_store_devconf()
3669 array[DEVCONF_RTR_SOLICITS] = cnf->rtr_solicits; in ipv6_store_devconf()
[all …]
/net/dccp/
Dfeat.c831 static u8 dccp_feat_prefer(u8 preferred_value, u8 *array, u8 array_len) in dccp_feat_prefer() argument
835 if (array != NULL) { in dccp_feat_prefer()
837 if (array[i] == preferred_value) { in dccp_feat_prefer()
838 array[i] = array[0]; in dccp_feat_prefer()
842 array[0] = preferred_value; in dccp_feat_prefer()
/net/ipv4/
Dcipso_ipv4.c1150 u16 array[CIPSO_V4_TAG_RNG_CAT_MAX * 2]; in cipso_v4_map_cat_rng_hton() local
1167 array[array_cnt++] = iter; in cipso_v4_map_cat_rng_hton()
1176 array[array_cnt++] = iter; in cipso_v4_map_cat_rng_hton()
1180 *((__be16 *)&net_cat[iter]) = htons(array[--array_cnt]); in cipso_v4_map_cat_rng_hton()
1183 if (array[array_cnt] != 0) { in cipso_v4_map_cat_rng_hton()
1184 *((__be16 *)&net_cat[iter]) = htons(array[array_cnt]); in cipso_v4_map_cat_rng_hton()
/net/iucv/
Diucv.c982 struct iucv_array *array; in iucv_message_receive_iprmdata() local
996 for (array = buffer; size > 0; array++) { in iucv_message_receive_iprmdata()
997 copy = min_t(size_t, size, array->length); in iucv_message_receive_iprmdata()
998 memcpy((u8 *)(addr_t) array->address, in iucv_message_receive_iprmdata()
/net/
DTUNABLE33 SOCK_ARRAY_SIZE IP socket array hash size (tunable)
/net/irda/irlan/
Dirlan_common.c981 int irlan_insert_array_param(struct sk_buff *skb, char *name, __u8 *array, in irlan_insert_array_param() argument
984 return __irlan_insert_param(skb, name, IRLAN_ARRAY, 0, 0, array, in irlan_insert_array_param()