* save the flags dep. on address length
*/
static int parse_q922_addr(const u_char *p, u_int *dlci,
* save the flags dep. on address length
*/
static int parse_q922_addr(const u_char *p, u_int *dlci,
char *q922_string(const u_char *p) {
static u_int dlci, addr_len;
char *q922_string(const u_char *p) {
static u_int dlci, addr_len;
static char buffer[sizeof("DLCI xxxxxxxxxx")];
memset(buffer, 0, sizeof(buffer));
static char buffer[sizeof("DLCI xxxxxxxxxx")];
memset(buffer, 0, sizeof(buffer));
- int length, u_int addr_len, u_int dlci, u_int8_t *flags, u_int16_t nlpid)
+ int length, u_int addr_len, u_int dlci, uint8_t *flags, uint16_t nlpid)
{
if (ndo->ndo_qflag) {
ND_PRINT((ndo, "Q.922, DLCI %u, length %u: ",
{
if (ndo->ndo_qflag) {
ND_PRINT((ndo, "Q.922, DLCI %u, length %u: ",
fr_print(netdissect_options *ndo,
register const u_char *p, u_int length)
{
fr_print(netdissect_options *ndo,
register const u_char *p, u_int length)
{
if (parse_q922_addr(p, &dlci, &addr_len, flags)) {
ND_PRINT((ndo, "Q.922, invalid address"));
if (parse_q922_addr(p, &dlci, &addr_len, flags)) {
ND_PRINT((ndo, "Q.922, invalid address"));
register const u_char *p, u_int length)
{
u_int tlen,idx,hdr_len = 0;
register const u_char *p, u_int length)
{
u_int tlen,idx,hdr_len = 0;
case MFR_CTRL_IE_LINK_ID:
for (idx = 0; idx < ie_len && idx < MFR_ID_STRING_MAXLEN; idx++) {
if (*(tptr+idx) != 0) /* don't print null termination */
case MFR_CTRL_IE_LINK_ID:
for (idx = 0; idx < ie_len && idx < MFR_ID_STRING_MAXLEN; idx++) {
if (*(tptr+idx) != 0) /* don't print null termination */
frf15_print(netdissect_options *ndo,
const u_char *p, u_int length) {
frf15_print(netdissect_options *ndo,
const u_char *p, u_int length) {