Revision 1d15abbb
Added by Ken McDonell over 14 years ago
- ID 1d15abbb9fb85c40db70c4ef12311084aee68430
- added
- modified
- copied
- renamed
- deleted
- src
- dbpmda
- include
- libpcp
- src
- connect.c (diff)
- desc.c (diff)
- err.c (diff)
- fetch.c (diff)
- help.c (diff)
- instance.c (diff)
- logconnect.c (diff)
- logcontrol.c (diff)
- logutil.c (diff)
- p_creds.c (diff)
- p_desc.c (diff)
- p_error.c (diff)
- p_fetch.c (diff)
- p_instance.c (diff)
- p_pmns.c (diff)
- p_profile.c (diff)
- p_result.c (diff)
- p_text.c (diff)
- pdu.c (diff)
- pmns.c (diff)
- store.c (diff)
- src
- libpcp_pmda
- src
- mainloop.c (diff)
- open.c (diff)
- src
- pmcd
- pmdas
- pmlc
- pmlogger
- callback.c (diff)
- dopdu.c (diff)
- fetch.c (diff)
- pmlogger.c (diff)
- pmproxy
libpcp, pmcd, dbpmda, pmlogger, et al - retire PDU_ASCII and PDU_BINARY
PDU_ASCII was effectively retired some time ago. Vestiges of this
and the only supported PDU format (PDU_BINARY) remained in the source.
This commit cleans this up.
Since we only have binary PDUs, the "mode" argument to all of the
__pmDecode* routines is not needed ... remove it!
PM_ERR_NOASCII is not used, pmErrStr() message changed to reflect
the fact that this error code is no longer used.
In several places PDU_* was overloaded, fixed by introducing new
macros relevant to the specific use. Changes as follows ...
__pmGetPDU
Second arg is now ANY_SIZE (was PDU_BINARY) or LIMIT_SIZE
(was PDU_CLIENT) ... the latter is used in pmcd and pmproxy
to avoid DOS attacks with malcrafted PDUs.
dbpmda
Use new macros NO_CONN (was PDU_NOT), CONN_DAEMON (was
PDU_BINARY) and CONN_DSO (was PDU_DSO) to indicate type and
state of PMDA connection.
pmcd
Don't need pduProtocol in AgentInfo structure.
pmlogger
Left over from last round of changes, used FROM_ANON instead
of PDU_BINARY for __pmSend* calls.