Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/cmd/isns/isnsd/
H A Dpdu.c496 isns_tlv_t *tlv = NULL; in pdu_get_source() local
508 tlv = (isns_tlv_t *)payload; in pdu_get_source()
509 tlv->attr_id = ntohl(tlv->attr_id); in pdu_get_source()
510 tlv->attr_len = ntohl(tlv->attr_len); in pdu_get_source()
513 return (tlv); in pdu_get_source()
524 isns_tlv_t *tlv, *key; in pdu_get_key() local
540 tlv = (isns_tlv_t *)payload; in pdu_get_key()
541 payload += (8 + tlv->attr_len); in pdu_get_key()
542 payload_len -= (8 + tlv->attr_len); in pdu_get_key()
545 tlv = (isns_tlv_t *)payload; in pdu_get_key()
[all …]
H A Ddump.c1279 isns_tlv_t *tlv; in new_dd_dds() local
1290 tlv = (isns_tlv_t *)payload; in new_dd_dds()
1291 tlv->attr_id = htonl(ISNS_ISCSI_NAME_ATTR_ID); in new_dd_dds()
1292 tlv->attr_len = htonl(32); in new_dd_dds()
1293 strcpy((char *)tlv->attr_value, "i am a control node."); in new_dd_dds()
1300 tlv = (isns_tlv_t *)payload; in new_dd_dds()
1301 tlv->attr_id = htonl(ISNS_DELIMITER_ATTR_ID); in new_dd_dds()
1302 tlv->attr_len = htonl(0); in new_dd_dds()
1315 tlv = (isns_tlv_t *)payload; in new_dd_dds()
1316 tlv->attr_id = htonl(ISNS_DD_NAME_ATTR_ID); in new_dd_dds()
[all …]
H A Dqry.c1029 isns_tlv_t *tlv, in get_next_obj() argument
1052 tag = tlv->attr_id; in get_next_obj()
1053 value = tlv->attr_value; in get_next_obj()
1076 NEXT_TLV(tlv, tlv_len); in get_next_obj()
1078 ((tag = tlv->attr_id) == in get_next_obj()
1080 value = tlv->attr_value; in get_next_obj()
1135 isns_tlv_t *tlv = (isns_tlv_t *)lcp->data[1].ptr; in cb_qry_rsp() local
1154 if (tlv->attr_len == 0) { in cb_qry_rsp()
1155 tag = tlv->attr_id; in cb_qry_rsp()
1165 NEXT_TLV(tlv, tlv_len); in cb_qry_rsp()
[all …]
H A Dobj.c1477 const isns_tlv_t *tlv, in extract_attr() argument
1485 switch (tlv->attr_id) { in extract_attr()
1495 if (tlv->attr_len < min_len || tlv->attr_len > max_len) { in extract_attr()
1498 attr->tag = tlv->attr_id; in extract_attr()
1499 attr->len = tlv->attr_len; in extract_attr()
1500 attr->value.ptr = (uchar_t *)&(tlv->attr_value[0]); in extract_attr()
1504 attr->tag = tlv->attr_id; in extract_attr()
1505 attr->len = tlv->attr_len; in extract_attr()
1506 attr->value.ptr = (uchar_t *)&(tlv->attr_value[0]); in extract_attr()
1511 if (tlv->attr_len != 16) { in extract_attr()
[all …]
H A Dfunc.c578 isns_tlv_t *tlv, in rsp_add_tlvs() argument
590 tag = tlv->attr_id; in rsp_add_tlvs()
591 len = tlv->attr_len; in rsp_add_tlvs()
592 value = (void *)tlv->attr_value; in rsp_add_tlvs()
596 NEXT_TLV(tlv, tlv_len); in rsp_add_tlvs()
860 isns_tlv_t *tlv; local
919 tlv = op;
925 op = tlv;