BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB-UTIL Reference

Error Codes

Macros

#define PJLIB_UTIL_ERRNO_START   (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*3)
 
#define PJLIB_UTIL_ESTUNRESOLVE
 
#define PJLIB_UTIL_ESTUNINMSGTYPE
 
#define PJLIB_UTIL_ESTUNINMSGLEN
 
#define PJLIB_UTIL_ESTUNINATTRLEN
 
#define PJLIB_UTIL_ESTUNINATTRTYPE
 
#define PJLIB_UTIL_ESTUNININDEX
 
#define PJLIB_UTIL_ESTUNNOBINDRES
 
#define PJLIB_UTIL_ESTUNRECVERRATTR
 
#define PJLIB_UTIL_ESTUNNOMAP
 
#define PJLIB_UTIL_ESTUNNOTRESPOND
 
#define PJLIB_UTIL_ESTUNSYMMETRIC
 
#define PJLIB_UTIL_ESTUNNOTMAGIC
 
#define PJLIB_UTIL_ESTUNFINGERPRINT
 
#define PJLIB_UTIL_EINXML
 
#define PJLIB_UTIL_EINJSON
 
#define PJLIB_UTIL_EDNSQRYTOOSMALL
 
#define PJLIB_UTIL_EDNSINSIZE
 
#define PJLIB_UTIL_EDNSINCLASS
 
#define PJLIB_UTIL_EDNSINNAMEPTR
 
#define PJLIB_UTIL_EDNSINNSADDR
 
#define PJLIB_UTIL_EDNSNONS
 
#define PJLIB_UTIL_EDNSNOWORKINGNS
 
#define PJLIB_UTIL_EDNSNOANSWERREC
 
#define PJLIB_UTIL_EDNSINANSWER
 
#define PJLIB_UTIL_DNS_RCODE_START   (PJLIB_UTIL_ERRNO_START+50) /* 320050 */
 
#define PJ_STATUS_FROM_DNS_RCODE(rcode)
 
#define PJLIB_UTIL_EDNS_FORMERR
 
#define PJLIB_UTIL_EDNS_SERVFAIL
 
#define PJLIB_UTIL_EDNS_NXDOMAIN
 
#define PJLIB_UTIL_EDNS_NOTIMPL
 
#define PJLIB_UTIL_EDNS_REFUSED
 
#define PJLIB_UTIL_EDNS_YXDOMAIN
 
#define PJLIB_UTIL_EDNS_YXRRSET
 
#define PJLIB_UTIL_EDNS_NXRRSET
 
#define PJLIB_UTIL_EDNS_NOTAUTH
 
#define PJLIB_UTIL_EDNS_NOTZONE
 
#define PJLIB_UTIL_ESTUNTOOMANYATTR
 
#define PJLIB_UTIL_ESTUNUNKNOWNATTR
 
#define PJLIB_UTIL_ESTUNINADDRLEN
 
#define PJLIB_UTIL_ESTUNIPV6NOTSUPP
 
#define PJLIB_UTIL_ESTUNNOTRESPONSE
 
#define PJLIB_UTIL_ESTUNINVALIDID
 
#define PJLIB_UTIL_ESTUNNOHANDLER
 
#define PJLIB_UTIL_ESTUNMSGINTPOS
 
#define PJLIB_UTIL_ESTUNFINGERPOS
 
#define PJLIB_UTIL_ESTUNNOUSERNAME
 
#define PJLIB_UTIL_ESTUNUSERNAME
 
#define PJLIB_UTIL_ESTUNMSGINT
 
#define PJLIB_UTIL_ESTUNDUPATTR
 
#define PJLIB_UTIL_ESTUNNOREALM
 
#define PJLIB_UTIL_ESTUNNONCE
 
#define PJLIB_UTIL_ESTUNTSXFAILED
 
#define PJLIB_UTIL_EHTTPINURL
 
#define PJLIB_UTIL_EHTTPINPORT
 
#define PJLIB_UTIL_EHTTPINCHDR
 
#define PJLIB_UTIL_EHTTPINSBUF
 
#define PJLIB_UTIL_EHTTPLOST
 
#define PJ_CLI_EEXIT
 
#define PJ_CLI_EMISSINGARG
 
#define PJ_CLI_ETOOMANYARGS
 
#define PJ_CLI_EINVARG
 
#define PJ_CLI_EBADNAME
 
#define PJ_CLI_EBADID
 
#define PJ_CLI_EBADXML
 
#define PJ_CLI_EAMBIGUOUS
 
#define PJ_CLI_ETELNETLOST
 

Detailed Description

Macro Definition Documentation

#define PJ_CLI_EAMBIGUOUS

CLI command entered by user match with more than one command/argument specification.

#define PJ_CLI_EBADID

CLI command with the specified id already exist.

#define PJ_CLI_EBADNAME

CLI command with the specified name already exist.

#define PJ_CLI_EBADXML

Invalid XML format for CLI command specification.

#define PJ_CLI_EEXIT

End the current session. This is a special error code returned by pj_cli_sess_exec() to indicate that "exit" or equivalent command has been called to end the current session.

#define PJ_CLI_EINVARG

Invalid CLI argument. Typically this is caused by extra characters specified in the command line which does not match any arguments.

#define PJ_CLI_EMISSINGARG

A required CLI argument is not specified.

#define PJ_CLI_ETELNETLOST

Telnet connection lost.

#define PJ_CLI_ETOOMANYARGS

Too many CLI arguments.

#define PJ_STATUS_FROM_DNS_RCODE (   rcode)
Value:
(rcode==0 ? PJ_SUCCESS : \
#define PJLIB_UTIL_DNS_RCODE_START
Definition: errno.h:201

Map DNS RCODE status into pj_status_t.

#define PJLIB_UTIL_DNS_RCODE_START   (PJLIB_UTIL_ERRNO_START+50) /* 320050 */

Start of error code mapped from DNS RCODE

#define PJLIB_UTIL_EDNS_FORMERR

Format error - The name server was unable to interpret the query. This corresponds to DNS RCODE 1.

#define PJLIB_UTIL_EDNS_NOTAUTH

The requestor is not authorized to perform this operation. This corresponds to DNS RCODE 9.

#define PJLIB_UTIL_EDNS_NOTIMPL

Not Implemented - The name server does not support the requested kind of query. This corresponds to DNS RCODE 4.

#define PJLIB_UTIL_EDNS_NOTZONE

The zone specified is not a zone. This corresponds to DNS RCODE 10.

#define PJLIB_UTIL_EDNS_NXDOMAIN

Name Error - Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist. This corresponds to DNS RCODE 3.

#define PJLIB_UTIL_EDNS_NXRRSET

The RRset (name, type) does not exist. This corresponds to DNS RCODE 8.

#define PJLIB_UTIL_EDNS_REFUSED

Refused - The name server refuses to perform the specified operation for policy reasons. This corresponds to DNS RCODE 5.

#define PJLIB_UTIL_EDNS_SERVFAIL

Server failure - The name server was unable to process this query due to a problem with the name server. This corresponds to DNS RCODE 2.

#define PJLIB_UTIL_EDNS_YXDOMAIN

The name exists. This corresponds to DNS RCODE 6.

#define PJLIB_UTIL_EDNS_YXRRSET

The RRset (name, type) exists. This corresponds to DNS RCODE 7.

#define PJLIB_UTIL_EDNSINANSWER

Invalid DNS answer. This error is raised for example when the DNS answer does not have a query section, or the type of RR in the answer doesn't match the query.

#define PJLIB_UTIL_EDNSINCLASS

Invalid DNS class. This error occurs when the received DNS response contains network class other than IN (Internet).

#define PJLIB_UTIL_EDNSINNAMEPTR

Invalid DNS name pointer. This error occurs when parsing the compressed names inside DNS response packet, when the name pointer points to an invalid address or the parsing has triggerred too much recursion.

#define PJLIB_UTIL_EDNSINNSADDR

Invalid DNS nameserver address. If hostname was specified for nameserver address, this error means that the function was unable to resolve the nameserver hostname.

#define PJLIB_UTIL_EDNSINSIZE

Invalid DNS packet length. This error occurs when the received DNS response packet does not match all the fields length.

#define PJLIB_UTIL_EDNSNOANSWERREC

No answer record in the DNS response.

#define PJLIB_UTIL_EDNSNONS

No nameserver is in DNS resolver. No nameserver is configured in the resolver.

#define PJLIB_UTIL_EDNSNOWORKINGNS

No working DNS nameserver. All nameservers have been queried, but none was able to serve any DNS requests. These "bad" nameservers will be re-tested again for "goodness" after some period.

#define PJLIB_UTIL_EDNSQRYTOOSMALL

DNS query packet buffer is too small. This error occurs when the user supplied buffer for creating DNS query (pj_dns_make_query() function) is too small.

#define PJLIB_UTIL_EHTTPINCHDR

Incomplete headers received

#define PJLIB_UTIL_EHTTPINPORT

Invalid port number

#define PJLIB_UTIL_EHTTPINSBUF

Insufficient buffer

#define PJLIB_UTIL_EHTTPINURL

Invalid URL format

#define PJLIB_UTIL_EHTTPLOST

Connection lost

#define PJLIB_UTIL_EINJSON

General invalid JSON message.

#define PJLIB_UTIL_EINXML

General invalid XML message.

#define PJLIB_UTIL_ERRNO_START   (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*3)

Start of error code relative to PJ_ERRNO_START_USER. This value is 320000.

#define PJLIB_UTIL_ESTUNDUPATTR

Found duplicate STUN attribute.

#define PJLIB_UTIL_ESTUNFINGERPOS

Found attribute after FINGERPRINT. This is not valid since FINGERPRINT MUST be the last attribute in the message.

#define PJLIB_UTIL_ESTUNFINGERPRINT

Invalid STUN fingerprint value

#define PJLIB_UTIL_ESTUNINADDRLEN

Invalid STUN socket address length.

#define PJLIB_UTIL_ESTUNINATTRLEN

Invalid STUN attribute length

#define PJLIB_UTIL_ESTUNINATTRTYPE

Invalid STUN attribute type

#define PJLIB_UTIL_ESTUNININDEX

Invalid STUN server/socket index

#define PJLIB_UTIL_ESTUNINMSGLEN

Invalid STUN message length

#define PJLIB_UTIL_ESTUNINMSGTYPE

Unknown STUN message type.

#define PJLIB_UTIL_ESTUNINVALIDID

STUN transaction ID mismatch.

#define PJLIB_UTIL_ESTUNIPV6NOTSUPP

STUN IPv6 attribute not supported

#define PJLIB_UTIL_ESTUNMSGINT

Missing/invalidSTUN MESSAGE-INTEGRITY attribute.

#define PJLIB_UTIL_ESTUNMSGINTPOS

Found non-FINGERPRINT attribute after MESSAGE-INTEGRITY. This is not valid since MESSAGE-INTEGRITY MUST be the last attribute or the attribute right before FINGERPRINT before the message.

#define PJLIB_UTIL_ESTUNNOBINDRES

No STUN binding response in the message

#define PJLIB_UTIL_ESTUNNOHANDLER

Unable to find handler for the request.

#define PJLIB_UTIL_ESTUNNOMAP

No STUN mapped address attribute

#define PJLIB_UTIL_ESTUNNONCE

Missing/stale STUN NONCE attribute value.

#define PJLIB_UTIL_ESTUNNOREALM

Missing STUN REALM attribute.

#define PJLIB_UTIL_ESTUNNOTMAGIC

Invalid STUN magic value

#define PJLIB_UTIL_ESTUNNOTRESPOND

Received no response from STUN server

#define PJLIB_UTIL_ESTUNNOTRESPONSE

Expecting STUN response message.

#define PJLIB_UTIL_ESTUNNOUSERNAME

Missing STUN USERNAME attribute. When credential is included in the STUN message (MESSAGE-INTEGRITY is present), the USERNAME attribute must be present in the message.

#define PJLIB_UTIL_ESTUNRECVERRATTR

Received STUN error attribute

#define PJLIB_UTIL_ESTUNRESOLVE

Unable to resolve STUN server

#define PJLIB_UTIL_ESTUNSYMMETRIC

Symetric NAT detected by STUN

#define PJLIB_UTIL_ESTUNTOOMANYATTR

Too many STUN attributes.

#define PJLIB_UTIL_ESTUNTSXFAILED

STUN transaction terminates with failure.

#define PJLIB_UTIL_ESTUNUNKNOWNATTR

Unknown STUN attribute. This error happens when the decoder encounters mandatory attribute type which it doesn't understand.

#define PJLIB_UTIL_ESTUNUSERNAME

Unknown STUN username/credential.

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.