]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-radius.c
Have the configure script arrange that the Makefile define _U_
[tcpdump] / print-radius.c
index 21314e09c93babd5597f4368edbac8bb493964dd..99ae285f5220e2eff326e98acd408bd798fd4745 100644 (file)
@@ -43,8 +43,8 @@
  */
 
 #ifndef lint
-static const char rcsid[] =
-    "$Id: print-radius.c,v 1.16 2002-09-05 00:00:18 guy Exp $";
+static const char rcsid[] _U_ =
+    "$Id: print-radius.c,v 1.21 2003-11-16 09:36:33 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -646,7 +646,7 @@ print_attr_address(register u_char *data, u_int length, u_short attr_code )
 /*************************************/
 /* Returns nothing.                  */
 /*************************************/
-static void print_attr_time(register u_char *data, u_int length, u_short attr_code)
+static void print_attr_time(register u_char *data, u_int length, u_short attr_code _U_)
 {
    time_t attr_time;
    char string[26];
@@ -823,7 +823,7 @@ radius_print(const u_char *dat, u_int length)
    }
 
    rad = (struct radius_hdr *)dat;
-   len = ntohs(rad->len);
+   len = EXTRACT_16BITS(&rad->len);
 
    if (len < MIN_RADIUS_LEN)
    {