Home
last modified time | relevance | path

Searched refs:role (Results 1 – 18 of 18) sorted by relevance

/net/netfilter/
Dnf_conntrack_proto_dccp.c407 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
408 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
519 enum ct_dccp_roles role; in nf_conntrack_dccp_packet() local
548 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
550 new_state = dccp_state_table[role][type][old_state]; in nf_conntrack_dccp_packet()
555 role == CT_DCCP_ROLE_SERVER) { in nf_conntrack_dccp_packet()
558 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
559 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet()
581 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
582 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet()
[all …]
/net/bluetooth/bnep/
Dbnep.h112 __u16 role; member
123 __u16 role; member
148 unsigned int role; member
Dcore.c601 s->role = req->role; in bnep_add_connection()
683 ci->role = s->role; in __bnep_copy_ci()
/net/smc/
Dsmc_core.c52 (!lgr->is_smcd && lgr->role == SMC_CLNT) ? in smc_lgr_schedule_free_work()
240 lgr->role = smc->listen_smc ? SMC_SERV : SMC_CLNT; in smc_lgr_create()
592 enum smc_lgr_role role, u32 clcqpn) in smcr_lgr_match() argument
600 lgr->role == role && in smcr_lgr_match()
601 (lgr->role == SMC_SERV || in smcr_lgr_match()
616 enum smc_lgr_role role; in smc_conn_create() local
620 role = smc->listen_smc ? SMC_SERV : SMC_CLNT; in smc_conn_create()
621 if (role == SMC_CLNT && ini->srv_first_contact) in smc_conn_create()
631 smcr_lgr_match(lgr, ini->ib_lcl, role, ini->ib_clcqpn)) && in smc_conn_create()
634 (role == SMC_CLNT || in smc_conn_create()
[all …]
Dsmc_llc.c416 if (lgr->role == SMC_SERV && in smc_llc_rx_confirm_link()
422 if (lgr->role == SMC_CLNT && in smc_llc_rx_confirm_link()
445 if (lgr->role == SMC_SERV) { in smc_llc_rx_add_link()
465 if (lgr->role == SMC_SERV) in smc_llc_rx_delete_link()
470 if (lgr->role == SMC_SERV) { in smc_llc_rx_delete_link()
Dsmc_diag.c153 .role = smc->conn.lgr->role, in __smc_diag_dump()
Dsmc_core.h211 enum smc_lgr_role role; member
Dsmc_ib.c136 if (lgr->role == SMC_SERV) { in smc_ib_ready_link()
/net/bluetooth/
Dhci_conn.c196 conn->role = HCI_ROLE_MASTER; in hci_acl_create_connection()
238 if (conn->type == ACL_LINK && conn->role == HCI_ROLE_MASTER && in hci_disconnect()
481 if (conn->role == HCI_ROLE_SLAVE) { in le_conn_timeout()
493 u8 role) in hci_conn_add() argument
507 conn->role = role; in hci_conn_add()
524 if (conn->role == HCI_ROLE_MASTER) in hci_conn_add()
961 u8 role, bdaddr_t *direct_rpa) in hci_connect_le() argument
1011 conn = hci_conn_add(hdev, LE_LINK, dst, role); in hci_connect_le()
1037 if (conn->role == HCI_ROLE_SLAVE) { in hci_connect_le()
1473 int hci_conn_switch_role(struct hci_conn *conn, __u8 role) in hci_conn_switch_role() argument
[all …]
Damp.c110 u8 role = out ? HCI_ROLE_MASTER : HCI_ROLE_SLAVE; in phylink_add() local
112 hcon = hci_conn_add(hdev, AMP_LINK, dst, role); in phylink_add()
Dsmp.c915 if (hcon->role == HCI_ROLE_MASTER) in tk_request()
1741 if (conn->hcon->role != HCI_ROLE_SLAVE) in smp_cmd_pairing_req()
1932 if (conn->hcon->role != HCI_ROLE_MASTER) in smp_cmd_pairing_rsp()
2212 key = hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role); in smp_ltk_encrypt()
2245 hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role)) in smp_sufficient_security()
2268 if (hcon->role != HCI_ROLE_MASTER) in smp_cmd_security_req()
2341 if (hcon->role == HCI_ROLE_MASTER) in smp_conn_security()
2380 if (hcon->role == HCI_ROLE_MASTER) { in smp_conn_security()
3032 if (hcon->role != HCI_ROLE_MASTER) in bredr_pairing()
Dhci_event.c132 conn->role = rp->role; in hci_cc_role_discovery()
2693 cp.role = 0x00; /* Become master */ in hci_conn_request_evt()
2695 cp.role = 0x01; /* Remain slave */ in hci_conn_request_evt()
3644 conn->role = ev->role; in hci_role_change_evt()
3648 hci_role_switch_cfm(conn, ev->status, ev->role); in hci_role_change_evt()
5033 bdaddr_t *local_rpa, u8 role, u16 handle, in le_conn_complete_evt() argument
5051 conn = hci_conn_add(hdev, LE_LINK, bdaddr, role); in le_conn_complete_evt()
5177 NULL, ev->role, le16_to_cpu(ev->handle), in hci_le_conn_complete_evt()
5191 &ev->local_rpa, ev->role, le16_to_cpu(ev->handle), in hci_le_enh_conn_complete_evt()
5716 ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); in hci_le_ltk_request_evt()
[all …]
Dhci_core.c2394 u8 addr_type, u8 role) in hci_find_ltk() argument
2403 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) { in hci_find_ltk()
2511 u8 role = ltk_role(type); in hci_add_ltk() local
2513 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk()
Dsco.c753 cp.role = 0x00; /* Ignored */ in sco_conn_defer_accept()
Dmgmt.c6170 u8 status, flags, role, addr[7], hash[16], rand[16]; in read_local_oob_ext_data() local
6267 role = 0x02; in read_local_oob_ext_data()
6269 role = 0x01; in read_local_oob_ext_data()
6272 &role, sizeof(role)); in read_local_oob_ext_data()
Dl2cap_core.c1572 if (hcon->role == HCI_ROLE_SLAVE && in l2cap_le_conn_ready()
5317 if (hcon->role != HCI_ROLE_MASTER) in l2cap_conn_param_update_req()
/net/batman-adv/
Dtp_meter.c813 if (unlikely(tp_vars->role != BATADV_TP_SENDER)) { in batadv_tp_send()
985 tp_vars->role = BATADV_TP_SENDER; in batadv_tp_start()
1354 tp_vars->role = BATADV_TP_RECEIVER; in batadv_tp_init_recv()
1416 if (unlikely(tp_vars->role != BATADV_TP_RECEIVER)) { in batadv_tp_recv_msg()
1419 tp_vars->role); in batadv_tp_recv_msg()
Dtypes.h1405 enum batadv_tp_meter_role role; member