]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-fr.c
Translate UDP/1700 as RADIUS
[tcpdump] / print-fr.c
index 0832522ce3c1de014da07640e7dc9e634e0cd3b1..2df3892b39f21485396c015f675b9e14b2e60cee 100644 (file)
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <stdio.h>
 #include <string.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "ethertype.h"
 #include "llc.h"
@@ -331,7 +330,7 @@ fr_print(netdissect_options *ndo,
                break;
 
        case NLPID_SNAP:
-               if (snap_print(ndo, p, length, length, 0) == 0) {
+               if (snap_print(ndo, p, length, length, NULL, NULL, 0) == 0) {
                        /* ether_type not known, print raw packet */
                         if (!ndo->ndo_eflag)
                             fr_hdr_print(ndo, length + hdr_len, hdr_len,
@@ -766,7 +765,7 @@ q933_print(netdissect_options *ndo,
            const u_char *p, u_int length)
 {
        const u_char *ptemp = p;
-       struct ie_tlv_header_t  *ie_p;
+       const struct ie_tlv_header_t  *ie_p;
         int olen;
        int is_ansi = 0;
         u_int codeset;
@@ -814,7 +813,7 @@ q933_print(netdissect_options *ndo,
 
        /* Loop through the rest of IE */
        while (length > sizeof(struct ie_tlv_header_t)) {
-               ie_p = (struct ie_tlv_header_t  *)ptemp;
+               ie_p = (const struct ie_tlv_header_t  *)ptemp;
                if (length < sizeof(struct ie_tlv_header_t) ||
                    length < sizeof(struct ie_tlv_header_t) + ie_p->ie_len) {
                     if (ndo->ndo_vflag) { /* not bark if there is just a trailer */