Lines Matching refs:tot_len
171 u16_t i, tot_len; in snmp_send_trap() local
196 tot_len = snmp_trap_varbind_sum(&trap_msg, varbinds); in snmp_send_trap()
197 tot_len = snmp_trap_header_sum(&trap_msg, tot_len); in snmp_send_trap()
200 p = pbuf_alloc(PBUF_TRANSPORT, tot_len, PBUF_RAM); in snmp_send_trap()
203 snmp_pbuf_stream_init(&pbuf_stream, p, 0, tot_len); in snmp_send_trap()
274 u16_t tot_len; in snmp_trap_varbind_sum() local
277 tot_len = 0; in snmp_trap_varbind_sum()
283 tot_len += 1 + len.vb_len_len + len.vb_value_len; in snmp_trap_varbind_sum()
289 trap->vbseqlen = tot_len; in snmp_trap_varbind_sum()
291 tot_len += 1 + tot_len_len; in snmp_trap_varbind_sum()
293 return tot_len; in snmp_trap_varbind_sum()
307 u16_t tot_len; in snmp_trap_header_sum() local
311 tot_len = vb_len; in snmp_trap_header_sum()
315 tot_len += 1 + len + lenlen; in snmp_trap_header_sum()
319 tot_len += 1 + len + lenlen; in snmp_trap_header_sum()
323 tot_len += 1 + len + lenlen; in snmp_trap_header_sum()
335 tot_len += 1 + len + lenlen; in snmp_trap_header_sum()
339 tot_len += 1 + len + lenlen; in snmp_trap_header_sum()
341 trap->pdulen = tot_len; in snmp_trap_header_sum()
343 tot_len += 1 + lenlen; in snmp_trap_header_sum()
347 tot_len += 1 + lenlen + trap->comlen; in snmp_trap_header_sum()
351 tot_len += 1 + len + lenlen; in snmp_trap_header_sum()
353 trap->seqlen = tot_len; in snmp_trap_header_sum()
355 tot_len += 1 + lenlen; in snmp_trap_header_sum()
357 return tot_len; in snmp_trap_header_sum()