Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 29) sorted by relevance

12

/net/core/
Dfilter.c41 static void *__load_pointer(struct sk_buff *skb, int k) in __load_pointer() argument
45 if (k >= SKF_NET_OFF) in __load_pointer()
46 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in __load_pointer()
47 else if (k >= SKF_LL_OFF) in __load_pointer()
48 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in __load_pointer()
55 static inline void *load_pointer(struct sk_buff *skb, int k, in load_pointer() argument
58 if (k >= 0) in load_pointer()
59 return skb_header_pointer(skb, k, size, buffer); in load_pointer()
61 if (k >= SKF_AD_OFF) in load_pointer()
63 return __load_pointer(skb, k); in load_pointer()
[all …]
Dflow.c101 int k = 0; in __flow_cache_shrink() local
104 while ((fle = *flp) != NULL && k < shrink_to) { in __flow_cache_shrink()
105 k++; in __flow_cache_shrink()
132 u32 *k = (u32 *) key; in flow_hash_code() local
134 return (jhash2(k, (sizeof(*key) / sizeof(u32)), flow_hash_rnd(cpu)) & in flow_hash_code()
Dskbuff.c1135 int i, k, eat = (skb->tail + delta) - skb->end; in __pskb_pull_tail() local
1219 k = 0; in __pskb_pull_tail()
1225 skb_shinfo(skb)->frags[k] = skb_shinfo(skb)->frags[i]; in __pskb_pull_tail()
1227 skb_shinfo(skb)->frags[k].page_offset += eat; in __pskb_pull_tail()
1228 skb_shinfo(skb)->frags[k].size -= eat; in __pskb_pull_tail()
1231 k++; in __pskb_pull_tail()
1234 skb_shinfo(skb)->nr_frags = k; in __pskb_pull_tail()
1957 int i, k = 0; in skb_split_no_header() local
1969 skb_shinfo(skb1)->frags[k] = skb_shinfo(skb)->frags[i]; in skb_split_no_header()
1986 k++; in skb_split_no_header()
[all …]
/net/ax25/
Dsysctl_net_ax25.c192 int n, k; in ax25_register_sysctl() local
221 for (k = 0; k < AX25_MAX_VALUES; k++) in ax25_register_sysctl()
222 child[k].data = &ax25_dev->values[k]; in ax25_register_sysctl()
Dax25_route.c396 int k; in ax25_adjust_path() local
398 for (k = 0; k < digipeat->ndigi; k++) { in ax25_adjust_path()
399 if (ax25cmp(addr, &digipeat->calls[k]) == 0) in ax25_adjust_path()
403 digipeat->ndigi = k; in ax25_adjust_path()
Daf_ax25.c361 unsigned int k; in ax25_ctl_ioctl() local
373 for (k = 0; k < digi.ndigi; k++) in ax25_ctl_ioctl()
374 digi.calls[k] = ax25_ctl.digi_addr[k]; in ax25_ctl_ioctl()
1891 int k; in ax25_info_show() local
1906 for (k=0; (ax25->digipeat != NULL) && (k < ax25->digipeat->ndigi); k++) { in ax25_info_show()
1908 ax2asc(buf, &ax25->digipeat->calls[k]), in ax25_info_show()
1909 ax25->digipeat->repeated[k]? "*":""); in ax25_info_show()
/net/dccp/ccids/lib/
Dloss_interval.c67 int i, k = tfrc_lh_length(lh) - 1; /* k is as in rfc3448bis, 5.4 */ in tfrc_lh_calc_i_mean() local
69 if (k <= 0) in tfrc_lh_calc_i_mean()
72 for (i = 0; i <= k; i++) { in tfrc_lh_calc_i_mean()
75 if (i < k) { in tfrc_lh_calc_i_mean()
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c472 int j,k; in arp_print() local
474 for (k=0, j=0; k < HBUFFERLEN-3 && j < ETH_ALEN; j++) { in arp_print()
475 hbuffer[k++] = hex_asc_hi(payload->src_hw[j]); in arp_print()
476 hbuffer[k++] = hex_asc_lo(payload->src_hw[j]); in arp_print()
477 hbuffer[k++]=':'; in arp_print()
479 hbuffer[--k]='\0'; in arp_print()
/net/rxrpc/
Drxkad.c69 conn->security_ix = payload->k.security_index; in rxkad_init_connection_security()
78 if (crypto_blkcipher_setkey(ci, payload->k.session_key, in rxkad_init_connection_security()
79 sizeof(payload->k.session_key)) < 0) in rxkad_init_connection_security()
127 memcpy(&iv, payload->k.session_key, sizeof(iv)); in rxkad_prime_packet_security()
223 memcpy(&iv, payload->k.session_key, sizeof(iv)); in rxkad_secure_packet_encrypt()
435 memcpy(&iv, payload->k.session_key, sizeof(iv)); in rxkad_verify_packet_encrypt()
800 resp.kvno = htonl(payload->k.kvno); in rxkad_respond_to_challenge()
801 resp.ticket_len = htonl(payload->k.ticket_len); in rxkad_respond_to_challenge()
805 rxkad_encrypt_response(conn, &resp, &payload->k); in rxkad_respond_to_challenge()
806 return rxkad_send_response(conn, &sp->hdr, &resp, &payload->k); in rxkad_respond_to_challenge()
Dar-key.c141 memcpy(&upayload->k, tsec, sizeof(*tsec)); in rxrpc_instantiate()
142 memcpy(&upayload->k.ticket, (void *)tsec + sizeof(*tsec), in rxrpc_instantiate()
/net/xfrm/
Dxfrm_user.c1736 struct xfrm_kmaddress *k, in copy_from_user_migrate() argument
1743 if (k != NULL) { in copy_from_user_migrate()
1747 memcpy(&k->local, &uk->local, sizeof(k->local)); in copy_from_user_migrate()
1748 memcpy(&k->remote, &uk->remote, sizeof(k->remote)); in copy_from_user_migrate()
1749 k->family = uk->family; in copy_from_user_migrate()
1750 k->reserved = uk->reserved; in copy_from_user_migrate()
1834 static int copy_to_user_kmaddress(struct xfrm_kmaddress *k, struct sk_buff *skb) in copy_to_user_kmaddress() argument
1839 uk.family = k->family; in copy_to_user_kmaddress()
1840 uk.reserved = k->reserved; in copy_to_user_kmaddress()
1841 memcpy(&uk.local, &k->local, sizeof(uk.local)); in copy_to_user_kmaddress()
[all …]
Dxfrm_policy.c1863 static inline int secpath_has_nontransport(struct sec_path *sp, int k, int *idxp) in secpath_has_nontransport() argument
1865 for (; k < sp->len; k++) { in secpath_has_nontransport()
1866 if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { in secpath_has_nontransport()
1867 *idxp = k; in secpath_has_nontransport()
1967 int i, k; in __xfrm_policy_check() local
1997 for (i = xfrm_nr-1, k = 0; i >= 0; i--) { in __xfrm_policy_check()
1998 k = xfrm_policy_ok(tpp[i], sp, k, family); in __xfrm_policy_check()
1999 if (k < 0) { in __xfrm_policy_check()
2000 if (k < -1) in __xfrm_policy_check()
2002 xerr_idx = -(2+k); in __xfrm_policy_check()
[all …]
/net/decnet/
Ddn_table.c97 dn_fib_key_t k; in dz_key() local
98 k.datum = dst & DZ_MASK(dz); in dz_key()
99 return k; in dz_key()
774 dn_fib_key_t k = dz_key(flp->fld_dst, dz); in dn_fib_table_lookup() local
776 for(f = dz_chain(k, dz); f; f = f->fn_next) { in dn_fib_table_lookup()
777 if (!dn_key_eq(k, f->fn_key)) { in dn_fib_table_lookup()
778 if (dn_key_leq(k, f->fn_key)) in dn_fib_table_lookup()
/net/ipv4/
Droute.c997 int i, k; in rt_garbage_collect() local
999 for (i = rt_hash_mask, k = rover; i >= 0; i--) { in rt_garbage_collect()
1002 k = (k + 1) & rt_hash_mask; in rt_garbage_collect()
1003 rthp = &rt_hash_table[k].chain; in rt_garbage_collect()
1004 spin_lock_bh(rt_hash_lock_addr(k)); in rt_garbage_collect()
1016 spin_unlock_bh(rt_hash_lock_addr(k)); in rt_garbage_collect()
1020 rover = k; in rt_garbage_collect()
1317 int i, k; in ip_rt_redirect() local
1348 for (k = 0; k < 2; k++) { in ip_rt_redirect()
1349 unsigned hash = rt_hash(daddr, skeys[i], ikeys[k], in ip_rt_redirect()
[all …]
Darp.c1290 int k, j; in arp_format_neigh_entry() local
1302 for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) { in arp_format_neigh_entry()
1303 hbuffer[k++] = hex_asc_hi(n->ha[j]); in arp_format_neigh_entry()
1304 hbuffer[k++] = hex_asc_lo(n->ha[j]); in arp_format_neigh_entry()
1305 hbuffer[k++] = ':'; in arp_format_neigh_entry()
1307 hbuffer[--k] = 0; in arp_format_neigh_entry()
Dtcp_output.c868 int i, k, eat; in __pskb_trim_head() local
871 k = 0; in __pskb_trim_head()
877 skb_shinfo(skb)->frags[k] = skb_shinfo(skb)->frags[i]; in __pskb_trim_head()
879 skb_shinfo(skb)->frags[k].page_offset += eat; in __pskb_trim_head()
880 skb_shinfo(skb)->frags[k].size -= eat; in __pskb_trim_head()
883 k++; in __pskb_trim_head()
886 skb_shinfo(skb)->nr_frags = k; in __pskb_trim_head()
Dfib_hash.c257 __be32 k = fz_key(flp->fl4_dst, fz); in fn_hash_lookup() local
259 head = &fz->fz_hash[fn_hash(k, fz)]; in fn_hash_lookup()
261 if (f->fn_key != k) in fn_hash_lookup()
/net/key/
Daf_key.c2491 struct xfrm_kmaddress k; in pfkey_migrate() local
2510 k.reserved = kma->sadb_x_kmaddress_reserved; in pfkey_migrate()
2513 &k.local, &k.remote, &k.family); in pfkey_migrate()
2565 kma ? &k : NULL); in pfkey_migrate()
2835 int i, k, sz = 0; in count_esp_combs() local
2845 for (k = 1; ; k++) { in count_esp_combs()
2846 struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); in count_esp_combs()
2892 int i, k; in dump_esp_combs() local
2908 for (k = 1; ; k++) { in dump_esp_combs()
2910 struct xfrm_algo_desc *aalg = xfrm_aalg_get_byidx(k); in dump_esp_combs()
[all …]
/net/sched/
Dcls_rsvp.h386 int i, k; in gen_tunnel() local
388 for (k=0; k<2; k++) { in gen_tunnel()
/net/llc/
Dllc_c_ac.c1071 if (llc->k - unacked_pdu < 1) in llc_conn_ac_dec_tx_win_size()
1072 llc->k = 1; in llc_conn_ac_dec_tx_win_size()
1074 llc->k -= unacked_pdu; in llc_conn_ac_dec_tx_win_size()
1090 llc->k += 1; in llc_conn_ac_inc_tx_win_size()
1091 if (llc->k > (u8) ~LLC_2_SEQ_NBR_MODULO) in llc_conn_ac_inc_tx_win_size()
1092 llc->k = (u8) ~LLC_2_SEQ_NBR_MODULO; in llc_conn_ac_inc_tx_win_size()
Dllc_proc.c178 llc->retry_count, llc->k, llc->rw, llc->p_flag, llc->f_flag, in llc_seq_core_show()
Dllc_c_ev.c623 return !(skb_queue_len(&llc_sk(sk)->pdu_unack_q) + 1 == llc_sk(sk)->k); in llc_conn_ev_qlfy_last_frame_eq_1()
637 return skb_queue_len(&llc_sk(sk)->pdu_unack_q) + 1 == llc_sk(sk)->k; in llc_conn_ev_qlfy_last_frame_eq_0()
Daf_llc.c1022 llc->k = opt; in llc_ui_setsockopt()
1079 val = llc->k; break; in llc_ui_getsockopt()
/net/bridge/netfilter/
Debtables.c809 unsigned int i, j, k, udc_cnt; in translate_table() local
839 k = 0; /* holds the total nr. of entries, should equal in translate_table()
844 &i, &j, &k, &udc_cnt); in translate_table()
854 if (k != newinfo->nentries) { in translate_table()
/net/packet/
Daf_packet.c1841 int k; in packet_set_ring() local
1843 for (k = 0; k < po->frames_per_block; k++) { in packet_set_ring()

12