/net/llc/ |
D | llc_pdu.c | 19 static u8 llc_pdu_get_pf_bit(struct llc_pdu_sn *pdu); 38 struct llc_pdu_sn *pdu; in llc_pdu_set_pf_bit() local 41 pdu = llc_pdu_sn_hdr(skb); in llc_pdu_set_pf_bit() 46 pdu->ctrl_2 = (pdu->ctrl_2 & 0xFE) | bit_value; in llc_pdu_set_pf_bit() 49 pdu->ctrl_1 |= (pdu->ctrl_1 & 0xEF) | (bit_value << 4); in llc_pdu_set_pf_bit() 66 struct llc_pdu_sn *pdu; in llc_pdu_decode_pf_bit() local 69 pdu = llc_pdu_sn_hdr(skb); in llc_pdu_decode_pf_bit() 74 *pf_bit = pdu->ctrl_2 & LLC_S_PF_BIT_MASK; in llc_pdu_decode_pf_bit() 77 *pf_bit = (pdu->ctrl_1 & LLC_U_PF_BIT_MASK) >> 4; in llc_pdu_decode_pf_bit() 91 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_pdu_init_as_disc_cmd() local [all …]
|
D | llc_c_ev.c | 79 struct llc_pdu_sn *pdu; in llc_util_nr_inside_tx_window() local 89 pdu = llc_pdu_sn_hdr(skb); in llc_util_nr_inside_tx_window() 90 nr1 = LLC_I_GET_NS(pdu); in llc_util_nr_inside_tx_window() 92 pdu = llc_pdu_sn_hdr(skb); in llc_util_nr_inside_tx_window() 93 nr2 = LLC_I_GET_NS(pdu); in llc_util_nr_inside_tx_window() 154 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ev_rx_disc_cmd_pbit_set_x() local 156 return LLC_PDU_IS_CMD(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_disc_cmd_pbit_set_x() 157 LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_DISC ? 0 : 1; in llc_conn_ev_rx_disc_cmd_pbit_set_x() 162 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ev_rx_dm_rsp_fbit_set_x() local 164 return LLC_PDU_IS_RSP(pdu) && LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ev_rx_dm_rsp_fbit_set_x() [all …]
|
D | llc_s_ev.c | 34 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_ui() local 36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_ui() 37 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_ui() 38 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_UI ? 0 : 1; in llc_sap_ev_rx_ui() 63 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_xid_c() local 65 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_xid_c() 66 LLC_PDU_TYPE_IS_U(pdu) && in llc_sap_ev_rx_xid_c() 67 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_XID ? 0 : 1; in llc_sap_ev_rx_xid_c() 73 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_ev_rx_xid_r() local 75 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && in llc_sap_ev_rx_xid_r() [all …]
|
D | llc_station.c | 30 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_stat_ev_rx_null_dsap_xid_c() local 32 return LLC_PDU_IS_CMD(pdu) && /* command PDU */ in llc_stat_ev_rx_null_dsap_xid_c() 33 LLC_PDU_TYPE_IS_U(pdu) && /* U type PDU */ in llc_stat_ev_rx_null_dsap_xid_c() 34 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_XID && in llc_stat_ev_rx_null_dsap_xid_c() 35 !pdu->dsap; /* NULL DSAP value */ in llc_stat_ev_rx_null_dsap_xid_c() 40 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_stat_ev_rx_null_dsap_test_c() local 42 return LLC_PDU_IS_CMD(pdu) && /* command PDU */ in llc_stat_ev_rx_null_dsap_test_c() 43 LLC_PDU_TYPE_IS_U(pdu) && /* U type PDU */ in llc_stat_ev_rx_null_dsap_test_c() 44 LLC_U_PDU_CMD(pdu) == LLC_1_PDU_CMD_TEST && in llc_stat_ev_rx_null_dsap_test_c() 45 !pdu->dsap; /* NULL DSAP */ in llc_stat_ev_rx_null_dsap_test_c()
|
D | llc_input.c | 78 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_pdu_type() local 80 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) != LLC_PDU_TYPE_U) in llc_pdu_type() 82 switch (LLC_U_PDU_CMD(pdu)) { in llc_pdu_type() 114 struct llc_pdu_un *pdu; in llc_fixup_skb() local 116 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb() 119 pdu = (struct llc_pdu_un *)skb->data; in llc_fixup_skb() 120 if ((pdu->ctrl_1 & LLC_PDU_TYPE_MASK) == LLC_PDU_TYPE_U) in llc_fixup_skb() 164 struct llc_pdu_sn *pdu; in llc_rcv() local 184 pdu = llc_pdu_sn_hdr(skb); in llc_rcv() 185 if (unlikely(!pdu->dsap)) /* NULL DSAP, refer to station */ in llc_rcv() [all …]
|
D | llc_c_ac.c | 51 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_ac_clear_remote_busy() local 55 nr = LLC_I_GET_NR(pdu); in llc_conn_ac_clear_remote_busy() 98 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_disc_ind() local 100 if (LLC_PDU_IS_RSP(pdu) && in llc_conn_ac_disc_ind() 101 LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ac_disc_ind() 102 LLC_U_PDU_RSP(pdu) == LLC_2_PDU_RSP_DM) in llc_conn_ac_disc_ind() 104 else if (LLC_PDU_IS_CMD(pdu) && in llc_conn_ac_disc_ind() 105 LLC_PDU_TYPE_IS_U(pdu) && in llc_conn_ac_disc_ind() 106 LLC_U_PDU_CMD(pdu) == LLC_2_PDU_CMD_DISC) in llc_conn_ac_disc_ind() 133 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_conn_ac_rst_ind() local [all …]
|
D | llc_conn.c | 213 struct llc_pdu_sn *pdu; in llc_conn_resend_i_pdu_as_cmd() local 228 pdu = llc_pdu_sn_hdr(skb); in llc_conn_resend_i_pdu_as_cmd() 233 llc->vS = LLC_I_GET_NS(pdu); in llc_conn_resend_i_pdu_as_cmd() 268 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_resend_i_pdu_as_rsp() local 274 llc->vS = LLC_I_GET_NS(pdu); in llc_conn_resend_i_pdu_as_rsp() 297 struct llc_pdu_sn *pdu; in llc_conn_remove_acked_pdus() local 305 pdu = llc_pdu_sn_hdr(skb); in llc_conn_remove_acked_pdus() 309 (int)LLC_I_GET_NS(pdu)) % LLC_2_SEQ_NBR_MODULO; in llc_conn_remove_acked_pdus() 332 struct llc_pdu_sn *pdu = llc_pdu_sn_hdr(skb); in llc_conn_send_pdus() local 334 if (LLC_PDU_TYPE_IS_I(pdu) && in llc_conn_send_pdus()
|
D | llc_sap.c | 94 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in llc_sap_rtn_pdu() local 96 switch (LLC_U_PDU_RSP(pdu)) { in llc_sap_rtn_pdu()
|
/net/9p/ |
D | protocol.c | 29 p9pdu_writef(struct p9_fcall *pdu, int proto_version, const char *fmt, ...); 46 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument 48 size_t len = min(pdu->size - pdu->offset, size); in pdu_read() 49 memcpy(data, &pdu->sdata[pdu->offset], len); in pdu_read() 50 pdu->offset += len; in pdu_read() 54 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument 56 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write() 57 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write() 58 pdu->size += len; in pdu_write() 63 pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size) in pdu_write_u() argument [all …]
|
D | protocol.h | 13 int p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt, 15 int p9pdu_readf(struct p9_fcall *pdu, int proto_version, const char *fmt, ...); 16 int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type); 17 int p9pdu_finalize(struct p9_client *clnt, struct p9_fcall *pdu); 18 void p9pdu_reset(struct p9_fcall *pdu); 19 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size);
|
D | client.c | 446 p9_parse_header(struct p9_fcall *pdu, int32_t *size, int8_t *type, int16_t *tag, in p9_parse_header() argument 452 int offset = pdu->offset; in p9_parse_header() 455 pdu->offset = 0; in p9_parse_header() 457 err = p9pdu_readf(pdu, 0, "dbw", &r_size, &r_type, &r_tag); in p9_parse_header() 468 if (pdu->size != r_size || r_size < 7) { in p9_parse_header() 473 pdu->id = r_type; in p9_parse_header() 474 pdu->tag = r_tag; in p9_parse_header() 477 pdu->size, pdu->id, pdu->tag); in p9_parse_header() 481 pdu->offset = offset; in p9_parse_header()
|
/net/802/ |
D | mrp.c | 327 app->pdu = skb; in mrp_pdu_init() 335 if (skb_tailroom(app->pdu) < sizeof(*endmark)) in mrp_pdu_append_end_mark() 337 endmark = __skb_put(app->pdu, sizeof(*endmark)); in mrp_pdu_append_end_mark() 344 if (!app->pdu) in mrp_pdu_queue() 347 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue() 351 dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type), in mrp_pdu_queue() 353 app->pdu->len); in mrp_pdu_queue() 355 skb_queue_tail(&app->queue, app->pdu); in mrp_pdu_queue() 356 app->pdu = NULL; in mrp_pdu_queue() 372 if (mrp_cb(app->pdu)->mh) { in mrp_pdu_append_msg_hdr() [all …]
|
D | garp.c | 237 app->pdu = skb; in garp_pdu_init() 243 if (skb_tailroom(app->pdu) < sizeof(u8)) in garp_pdu_append_end_mark() 245 __skb_put_u8(app->pdu, GARP_END_MARK); in garp_pdu_append_end_mark() 251 if (!app->pdu) in garp_pdu_queue() 257 llc_pdu_header_init(app->pdu, LLC_PDU_TYPE_U, LLC_SAP_BSPAN, in garp_pdu_queue() 259 llc_pdu_init_as_ui_cmd(app->pdu); in garp_pdu_queue() 260 llc_mac_hdr_init(app->pdu, app->dev->dev_addr, in garp_pdu_queue() 263 skb_queue_tail(&app->queue, app->pdu); in garp_pdu_queue() 264 app->pdu = NULL; in garp_pdu_queue() 279 if (skb_tailroom(app->pdu) < sizeof(*gm)) in garp_pdu_append_msg() [all …]
|
D | stp.c | 34 const struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb); in stp_pdu_rcv() local 37 if (pdu->ssap != LLC_SAP_BSPAN || in stp_pdu_rcv() 38 pdu->dsap != LLC_SAP_BSPAN || in stp_pdu_rcv() 39 pdu->ctrl_1 != LLC_PDU_TYPE_U) in stp_pdu_rcv()
|
/net/nfc/ |
D | llcp_commands.c | 283 static struct sk_buff *llcp_add_header(struct sk_buff *pdu, in llcp_add_header() argument 295 skb_put_data(pdu, header, LLCP_HEADER_SIZE); in llcp_add_header() 297 return pdu; in llcp_add_header() 300 static struct sk_buff *llcp_add_tlv(struct sk_buff *pdu, const u8 *tlv, in llcp_add_tlv() argument 308 skb_put_data(pdu, tlv, tlv_length); in llcp_add_tlv() 310 return pdu; in llcp_add_tlv() 657 struct sk_buff *pdu; in nfc_llcp_send_i_frame() local 708 pdu = llcp_allocate_pdu(sock, LLCP_PDU_I, in nfc_llcp_send_i_frame() 710 if (pdu == NULL) { in nfc_llcp_send_i_frame() 715 skb_put(pdu, LLCP_SEQUENCE_SIZE); in nfc_llcp_send_i_frame() [all …]
|
D | llcp_core.c | 687 static u8 nfc_llcp_dsap(const struct sk_buff *pdu) in nfc_llcp_dsap() argument 689 return (pdu->data[0] & 0xfc) >> 2; in nfc_llcp_dsap() 692 static u8 nfc_llcp_ptype(const struct sk_buff *pdu) in nfc_llcp_ptype() argument 694 return ((pdu->data[0] & 0x03) << 2) | ((pdu->data[1] & 0xc0) >> 6); in nfc_llcp_ptype() 697 static u8 nfc_llcp_ssap(const struct sk_buff *pdu) in nfc_llcp_ssap() argument 699 return pdu->data[1] & 0x3f; in nfc_llcp_ssap() 702 static u8 nfc_llcp_ns(const struct sk_buff *pdu) in nfc_llcp_ns() argument 704 return pdu->data[2] >> 4; in nfc_llcp_ns() 707 static u8 nfc_llcp_nr(const struct sk_buff *pdu) in nfc_llcp_nr() argument 709 return pdu->data[2] & 0xf; in nfc_llcp_nr() [all …]
|
/net/netfilter/ |
D | nf_conntrack_h323_main.c | 1080 H323_UU_PDU *pdu = &q931->UUIE.h323_uu_pdu; in process_q931() local 1084 switch (pdu->h323_message_body.choice) { in process_q931() 1087 &pdu->h323_message_body.setup); in process_q931() 1092 &pdu->h323_message_body. in process_q931() 1097 &pdu->h323_message_body.connect); in process_q931() 1101 &pdu->h323_message_body.alerting); in process_q931() 1105 &pdu->h323_message_body.facility); in process_q931() 1109 &pdu->h323_message_body.progress); in process_q931() 1113 pdu->h323_message_body.choice); in process_q931() 1120 if (pdu->options & eH323_UU_PDU_h245Control) { in process_q931() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.asn1 | 9 pdu
|