libisdn
|
#include <stdio.h>
#include <string.h>
#include "X213.h"
#include "ISO3166.h"
#include "utils/common.h"
Go to the source code of this file.
Data Structures | |
struct | nsap_afi_info |
Defines | |
#define | NSAP_IDI_X121_LEN 7 /* 7 octets: 14 digits */ |
#define | NSAP_IDI_ISO_DCC_LEN 2 /* 2 octets: 3 digits + padding */ |
#define | NSAP_IDI_F69_LEN 4 /* 4 octets: 8 digits */ |
#define | NSAP_IDI_E163_LEN 6 /* 6 octets: 12 digits */ |
#define | NSAP_IDI_E164_LEN 8 /* 8 octets: 15 digits + padding */ |
#define | NSAP_IDI_ISO_6523_ICD_LEN 3 /* 3 octets: 6 digits */ |
#define | NSAP_IDI_IANA_ICP_LEN 2 /* 2 octets: 4 digits */ |
#define | NSAP_IDI_ITU_T_IND_LEN 3 /* 3 octets: 6 digits */ |
#define | NSAP_IDI_LOCAL_LEN 0 /* no IDI */ |
Functions | |
int | nsap_afi_valid (const char afi) |
int | nsap_decode (struct nsap_addr *addr, char *buf, int size) |
int | nsap_print (struct nsap_addr *addr, char *buf, int size) |
#define NSAP_IDI_E163_LEN 6 /* 6 octets: 12 digits */ |
#define NSAP_IDI_E164_LEN 8 /* 8 octets: 15 digits + padding */ |
#define NSAP_IDI_F69_LEN 4 /* 4 octets: 8 digits */ |
#define NSAP_IDI_IANA_ICP_LEN 2 /* 2 octets: 4 digits */ |
#define NSAP_IDI_ISO_6523_ICD_LEN 3 /* 3 octets: 6 digits */ |
#define NSAP_IDI_ISO_DCC_LEN 2 /* 2 octets: 3 digits + padding */ |
#define NSAP_IDI_ITU_T_IND_LEN 3 /* 3 octets: 6 digits */ |
#define NSAP_IDI_LOCAL_LEN 0 /* no IDI */ |
#define NSAP_IDI_X121_LEN 7 /* 7 octets: 14 digits */ |
int nsap_afi_valid | ( | const char | afi | ) |
Check whether NSAP AFI can be decoded
[in] | afi | AFI to check |
Definition at line 340 of file X213.c.
Referenced by Q931Die_CalledSub().
int nsap_decode | ( | struct nsap_addr * | addr, |
char * | buf, | ||
int | size | ||
) |
Definition at line 345 of file X213.c.
References nsap_addr::dsp, nsap_addr::idi, nsap_addr::max_dsp_length, NSAP_IDI_E163, NSAP_IDI_E164, NSAP_IDI_F69, NSAP_IDI_IANA_ICP, NSAP_IDI_ISO_6523_ICD, NSAP_IDI_ISO_DCC, NSAP_IDI_ITU_T_IND, NSAP_IDI_LOCAL, NSAP_IDI_X121, and NSAPE_NO_ERROR.
Referenced by Q931Die_CalledSub().
int nsap_print | ( | struct nsap_addr * | addr, |
char * | buf, | ||
int | size | ||
) |
Create textual representation of NSAP address
[in] | addr | NSAP address |
[out] | buf | Output buffer |
[in] | size | Size of output buffer |
Definition at line 405 of file X213.c.
References nsap_addr::dsp, nsap_addr::idi, NSAP_DSP_DECIMAL, NSAP_IDI_E163, NSAP_IDI_E164, NSAP_IDI_F69, NSAP_IDI_IANA_ICP, NSAP_IDI_ISO_6523_ICD, NSAP_IDI_ISO_DCC, NSAP_IDI_ITU_T_IND, NSAP_IDI_LOCAL, NSAP_IDI_X121, and NSAPE_NO_ERROR.
Referenced by Q931Die_CalledSub().