/linux-4.4.14/net/tipc/ |
H A D | name_table.c | 92 * @sseq: pointer to dynamically-sized array of sub-sequences of this 'type'; 157 struct sub_seq *sseq = tipc_subseq_alloc(1); tipc_nameseq_create() local 159 if (!nseq || !sseq) { tipc_nameseq_create() 162 kfree(sseq); tipc_nameseq_create() 168 nseq->sseqs = sseq; tipc_nameseq_create() 241 struct sub_seq *sseq; tipc_nameseq_insert_publ() local 245 sseq = nameseq_find_subseq(nseq, lower); tipc_nameseq_insert_publ() 246 if (sseq) { tipc_nameseq_insert_publ() 249 if ((sseq->lower != lower) || (sseq->upper != upper)) { tipc_nameseq_insert_publ() 253 info = sseq->info; tipc_nameseq_insert_publ() 302 sseq = &nseq->sseqs[inspos]; tipc_nameseq_insert_publ() 304 memmove(sseq + 1, sseq, (freesseq - sseq) * sizeof(*sseq)); tipc_nameseq_insert_publ() 305 memset(sseq, 0, sizeof(*sseq)); tipc_nameseq_insert_publ() 307 sseq->lower = lower; tipc_nameseq_insert_publ() 308 sseq->upper = upper; tipc_nameseq_insert_publ() 309 sseq->info = info; tipc_nameseq_insert_publ() 357 struct sub_seq *sseq = nameseq_find_subseq(nseq, inst); tipc_nameseq_remove_publ() local 363 if (!sseq) tipc_nameseq_remove_publ() 366 info = sseq->info; tipc_nameseq_remove_publ() 397 memmove(sseq, sseq + 1, (free - (sseq + 1)) * sizeof(*sseq)); tipc_nameseq_remove_publ() 419 struct sub_seq *sseq = nseq->sseqs; tipc_nameseq_subscribe() local 423 if (!sseq) tipc_nameseq_subscribe() 426 while (sseq != &nseq->sseqs[nseq->first_free]) { tipc_nameseq_subscribe() 427 if (tipc_subscrp_check_overlap(s, sseq->lower, sseq->upper)) { tipc_nameseq_subscribe() 429 struct name_info *info = sseq->info; tipc_nameseq_subscribe() 433 tipc_subscrp_report_overlap(s, sseq->lower, tipc_nameseq_subscribe() 434 sseq->upper, tipc_nameseq_subscribe() 441 sseq++; tipc_nameseq_subscribe() 528 struct sub_seq *sseq; tipc_nametbl_translate() local 543 sseq = nameseq_find_subseq(seq, instance); tipc_nametbl_translate() 544 if (unlikely(!sseq)) tipc_nametbl_translate() 546 info = sseq->info; tipc_nametbl_translate() 616 struct sub_seq *sseq; tipc_nametbl_mc_translate() local 627 sseq = seq->sseqs + nameseq_locate_subseq(seq, lower); tipc_nametbl_mc_translate() 629 for (; sseq != sseq_stop; sseq++) { tipc_nametbl_mc_translate() 632 if (sseq->lower > upper) tipc_nametbl_mc_translate() 635 info = sseq->info; tipc_nametbl_mc_translate() 797 struct sub_seq *sseq; tipc_purge_publications() local 801 sseq = seq->sseqs; tipc_purge_publications() 802 info = sseq->info; tipc_purge_publications() 844 struct sub_seq *sseq, u32 *last_publ) __tipc_nl_add_nametable_publ() 852 list_for_each_entry(p, &sseq->info->zone_list, zone_list) __tipc_nl_add_nametable_publ() 858 p = list_first_entry(&sseq->info->zone_list, struct publication, __tipc_nl_add_nametable_publ() 862 list_for_each_entry_from(p, &sseq->info->zone_list, zone_list) { __tipc_nl_add_nametable_publ() 881 if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_LOWER, sseq->lower)) __tipc_nl_add_nametable_publ() 883 if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_UPPER, sseq->upper)) __tipc_nl_add_nametable_publ() 915 struct sub_seq *sseq; __tipc_nl_subseq_list() local 927 for (sseq = sseq_start; sseq != &seq->sseqs[seq->first_free]; sseq++) { __tipc_nl_subseq_list() 928 err = __tipc_nl_add_nametable_publ(msg, seq, sseq, last_publ); __tipc_nl_subseq_list() 930 *last_lower = sseq->lower; __tipc_nl_subseq_list() 842 __tipc_nl_add_nametable_publ(struct tipc_nl_msg *msg, struct name_seq *seq, struct sub_seq *sseq, u32 *last_publ) __tipc_nl_add_nametable_publ() argument
|
/linux-4.4.14/net/ipv6/ |
H A D | syncookies.c | 73 __be16 sport, __be16 dport, __u32 sseq, secure_tcp_syn_cookie() 78 sseq + (count << COOKIEBITS) + secure_tcp_syn_cookie() 85 __be16 dport, __u32 sseq) check_tcp_syn_cookie() 89 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; check_tcp_syn_cookie() 71 secure_tcp_syn_cookie(const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 data) secure_tcp_syn_cookie() argument 83 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, const struct in6_addr *daddr, __be16 sport, __be16 dport, __u32 sseq) check_tcp_syn_cookie() argument
|
/linux-4.4.14/net/ipv4/ |
H A D | syncookies.c | 109 __be16 dport, __u32 sseq, __u32 data) secure_tcp_syn_cookie() 114 * HASH(sec1,saddr,sport,daddr,dport,sec1) + sseq + (count * 2^24) secure_tcp_syn_cookie() 116 * Where sseq is their sequence number and count increases every secure_tcp_syn_cookie() 123 sseq + (count << COOKIEBITS) + secure_tcp_syn_cookie() 138 __be16 sport, __be16 dport, __u32 sseq) check_tcp_syn_cookie() 143 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; check_tcp_syn_cookie() 108 secure_tcp_syn_cookie(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, __u32 sseq, __u32 data) secure_tcp_syn_cookie() argument 137 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, __be16 sport, __be16 dport, __u32 sseq) check_tcp_syn_cookie() argument
|