]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-fr.c
Translate UDP/1700 as RADIUS
[tcpdump] / print-fr.c
index 17321b1459e3cb6d9d302786129ead6b7449a77c..2df3892b39f21485396c015f675b9e14b2e60cee 100644 (file)
 #include "config.h"
 #endif
 
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <stdio.h>
 #include <string.h>
 
 
 #include <stdio.h>
 #include <string.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "ethertype.h"
 #include "llc.h"
 #include "addrtoname.h"
 #include "ethertype.h"
 #include "llc.h"
@@ -765,7 +765,7 @@ q933_print(netdissect_options *ndo,
            const u_char *p, u_int length)
 {
        const u_char *ptemp = p;
            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;
         int olen;
        int is_ansi = 0;
         u_int codeset;
@@ -813,7 +813,7 @@ q933_print(netdissect_options *ndo,
 
        /* Loop through the rest of IE */
        while (length > sizeof(struct ie_tlv_header_t)) {
 
        /* 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 */
                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 */