• Home
  • Raw
  • Download

Lines Matching refs:new_asoc

302 	struct sctp_association *new_asoc;  in sctp_sf_do_5_1B_init()  local
391 new_asoc = sctp_make_temp_asoc(ep, chunk, GFP_ATOMIC); in sctp_sf_do_5_1B_init()
392 if (!new_asoc) in sctp_sf_do_5_1B_init()
395 if (sctp_assoc_set_bind_addr_from_ep(new_asoc, in sctp_sf_do_5_1B_init()
401 if (!sctp_process_init(new_asoc, chunk, sctp_source(chunk), in sctp_sf_do_5_1B_init()
416 repl = sctp_make_init_ack(new_asoc, chunk, GFP_ATOMIC, len); in sctp_sf_do_5_1B_init()
442 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_5_1B_init()
457 sctp_association_free(new_asoc); in sctp_sf_do_5_1B_init()
682 struct sctp_association *new_asoc; in sctp_sf_do_5_1D_ce() local
728 new_asoc = sctp_unpack_cookie(ep, asoc, chunk, GFP_ATOMIC, &error, in sctp_sf_do_5_1D_ce()
737 if (!new_asoc) { in sctp_sf_do_5_1D_ce()
767 if (!sctp_process_init(new_asoc, chunk, in sctp_sf_do_5_1D_ce()
776 error = sctp_auth_asoc_init_active_key(new_asoc, GFP_ATOMIC); in sctp_sf_do_5_1D_ce()
780 if (!sctp_auth_chunk_verify(net, chunk, new_asoc)) { in sctp_sf_do_5_1D_ce()
781 sctp_association_free(new_asoc); in sctp_sf_do_5_1D_ce()
785 repl = sctp_make_cookie_ack(new_asoc, chunk); in sctp_sf_do_5_1D_ce()
795 ev = sctp_ulpevent_make_assoc_change(new_asoc, 0, SCTP_COMM_UP, 0, in sctp_sf_do_5_1D_ce()
796 new_asoc->c.sinit_num_ostreams, in sctp_sf_do_5_1D_ce()
797 new_asoc->c.sinit_max_instreams, in sctp_sf_do_5_1D_ce()
807 if (new_asoc->peer.adaptation_ind) { in sctp_sf_do_5_1D_ce()
808 ai_ev = sctp_ulpevent_make_adaptation_indication(new_asoc, in sctp_sf_do_5_1D_ce()
814 if (!new_asoc->peer.auth_capable) { in sctp_sf_do_5_1D_ce()
815 auth_ev = sctp_ulpevent_make_authkey(new_asoc, 0, in sctp_sf_do_5_1D_ce()
827 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_5_1D_ce()
834 if (new_asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE]) in sctp_sf_do_5_1D_ce()
862 sctp_association_free(new_asoc); in sctp_sf_do_5_1D_ce()
1318 static int sctp_sf_check_restart_addrs(const struct sctp_association *new_asoc, in sctp_sf_check_restart_addrs() argument
1323 struct net *net = sock_net(new_asoc->base.sk); in sctp_sf_check_restart_addrs()
1338 list_for_each_entry(new_addr, &new_asoc->peer.transport_addr_list, in sctp_sf_check_restart_addrs()
1358 static void sctp_tietags_populate(struct sctp_association *new_asoc, in sctp_tietags_populate() argument
1366 new_asoc->c.my_vtag = asoc->c.my_vtag; in sctp_tietags_populate()
1367 new_asoc->c.my_ttag = asoc->c.my_vtag; in sctp_tietags_populate()
1368 new_asoc->c.peer_ttag = 0; in sctp_tietags_populate()
1372 new_asoc->c.my_vtag = asoc->c.my_vtag; in sctp_tietags_populate()
1373 new_asoc->c.my_ttag = asoc->c.my_vtag; in sctp_tietags_populate()
1374 new_asoc->c.peer_ttag = asoc->c.peer_vtag; in sctp_tietags_populate()
1381 new_asoc->c.my_ttag = asoc->c.my_vtag; in sctp_tietags_populate()
1382 new_asoc->c.peer_ttag = asoc->c.peer_vtag; in sctp_tietags_populate()
1390 new_asoc->rwnd = asoc->rwnd; in sctp_tietags_populate()
1391 new_asoc->c.sinit_num_ostreams = asoc->c.sinit_num_ostreams; in sctp_tietags_populate()
1392 new_asoc->c.sinit_max_instreams = asoc->c.sinit_max_instreams; in sctp_tietags_populate()
1393 new_asoc->c.initial_tsn = asoc->c.initial_tsn; in sctp_tietags_populate()
1405 static char sctp_tietags_compare(struct sctp_association *new_asoc, in sctp_tietags_compare() argument
1409 if ((asoc->c.my_vtag != new_asoc->c.my_vtag) && in sctp_tietags_compare()
1410 (asoc->c.peer_vtag != new_asoc->c.peer_vtag) && in sctp_tietags_compare()
1411 (asoc->c.my_vtag == new_asoc->c.my_ttag) && in sctp_tietags_compare()
1412 (asoc->c.peer_vtag == new_asoc->c.peer_ttag)) in sctp_tietags_compare()
1416 if ((asoc->c.my_vtag == new_asoc->c.my_vtag) && in sctp_tietags_compare()
1417 ((asoc->c.peer_vtag != new_asoc->c.peer_vtag) || in sctp_tietags_compare()
1423 if ((asoc->c.my_vtag == new_asoc->c.my_vtag) && in sctp_tietags_compare()
1424 (asoc->c.peer_vtag == new_asoc->c.peer_vtag)) in sctp_tietags_compare()
1428 if ((asoc->c.my_vtag != new_asoc->c.my_vtag) && in sctp_tietags_compare()
1429 (asoc->c.peer_vtag == new_asoc->c.peer_vtag) && in sctp_tietags_compare()
1430 (0 == new_asoc->c.my_ttag) && in sctp_tietags_compare()
1431 (0 == new_asoc->c.peer_ttag)) in sctp_tietags_compare()
1451 struct sctp_association *new_asoc; in sctp_sf_do_unexpected_init() local
1529 new_asoc = sctp_make_temp_asoc(ep, chunk, GFP_ATOMIC); in sctp_sf_do_unexpected_init()
1530 if (!new_asoc) in sctp_sf_do_unexpected_init()
1533 if (sctp_assoc_set_bind_addr_from_ep(new_asoc, in sctp_sf_do_unexpected_init()
1541 if (!sctp_process_init(new_asoc, chunk, sctp_source(chunk), in sctp_sf_do_unexpected_init()
1552 if (!sctp_sf_check_restart_addrs(new_asoc, asoc, chunk, in sctp_sf_do_unexpected_init()
1559 sctp_tietags_populate(new_asoc, asoc); in sctp_sf_do_unexpected_init()
1572 repl = sctp_make_init_ack(new_asoc, chunk, GFP_ATOMIC, len); in sctp_sf_do_unexpected_init()
1597 sctp_add_cmd_sf(commands, SCTP_CMD_NEW_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_unexpected_init()
1613 if (new_asoc) in sctp_sf_do_unexpected_init()
1614 sctp_association_free(new_asoc); in sctp_sf_do_unexpected_init()
1766 struct sctp_association *new_asoc) in sctp_sf_do_dupcook_a() argument
1779 if (!sctp_process_init(new_asoc, chunk, sctp_source(chunk), peer_init, in sctp_sf_do_dupcook_a()
1783 if (sctp_auth_asoc_init_active_key(new_asoc, GFP_ATOMIC)) in sctp_sf_do_dupcook_a()
1786 if (!sctp_auth_chunk_verify(net, chunk, new_asoc)) in sctp_sf_do_dupcook_a()
1793 if (!sctp_sf_check_restart_addrs(new_asoc, asoc, chunk, commands)) in sctp_sf_do_dupcook_a()
1834 repl = sctp_make_cookie_ack(new_asoc, chunk); in sctp_sf_do_dupcook_a()
1840 new_asoc->c.sinit_num_ostreams, in sctp_sf_do_dupcook_a()
1841 new_asoc->c.sinit_max_instreams, in sctp_sf_do_dupcook_a()
1847 sctp_add_cmd_sf(commands, SCTP_CMD_UPDATE_ASSOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_dupcook_a()
1887 struct sctp_association *new_asoc) in sctp_sf_do_dupcook_b() argument
1896 if (!sctp_process_init(new_asoc, chunk, sctp_source(chunk), peer_init, in sctp_sf_do_dupcook_b()
1900 if (sctp_auth_asoc_init_active_key(new_asoc, GFP_ATOMIC)) in sctp_sf_do_dupcook_b()
1903 if (!sctp_auth_chunk_verify(net, chunk, new_asoc)) in sctp_sf_do_dupcook_b()
1907 sctp_add_cmd_sf(commands, SCTP_CMD_UPDATE_ASSOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_dupcook_b()
1913 repl = sctp_make_cookie_ack(new_asoc, chunk); in sctp_sf_do_dupcook_b()
1968 struct sctp_association *new_asoc) in sctp_sf_do_dupcook_c() argument
1991 struct sctp_association *new_asoc) in sctp_sf_do_dupcook_d() argument
2105 struct sctp_association *new_asoc; in sctp_sf_do_5_2_4_dupcook() local
2134 new_asoc = sctp_unpack_cookie(ep, asoc, chunk, GFP_ATOMIC, &error, in sctp_sf_do_5_2_4_dupcook()
2143 if (!new_asoc) { in sctp_sf_do_5_2_4_dupcook()
2164 sctp_association_free(new_asoc); in sctp_sf_do_5_2_4_dupcook()
2169 new_asoc->temp = 1; in sctp_sf_do_5_2_4_dupcook()
2174 action = sctp_tietags_compare(new_asoc, asoc); in sctp_sf_do_5_2_4_dupcook()
2179 new_asoc); in sctp_sf_do_5_2_4_dupcook()
2184 new_asoc); in sctp_sf_do_5_2_4_dupcook()
2189 new_asoc); in sctp_sf_do_5_2_4_dupcook()
2194 new_asoc); in sctp_sf_do_5_2_4_dupcook()
2203 sctp_add_cmd_sf(commands, SCTP_CMD_SET_ASOC, SCTP_ASOC(new_asoc)); in sctp_sf_do_5_2_4_dupcook()