* is for IP V4 CIDR notation, but prepared for V6: just
* add the necessary bits where the comments indicate.
*
- * $Id: ip.c,v 1.1 1998/10/03 05:40:49 momjian Exp $
+ * $Id: ip.c,v 1.2 1998/10/04 15:31:06 momjian Exp $
*/
#include <sys/types.h>
*/
int
-v4bitncmp(u_int32_t a1, u_int32_t a2, int bits)
+v4bitncmp(unsigned int a1, unsigned int a2, int bits)
{
unsigned long mask = 0;
int i;
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: builtins.h,v 1.56 1998/10/03 05:40:59 momjian Exp $
+ * $Id: builtins.h,v 1.57 1998/10/04 15:31:07 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
bool ipaddr_sup(ipaddr * a1, ipaddr * a2);
bool ipaddr_supeq(ipaddr * a1, ipaddr * a2);
int4 ipaddr_cmp(ipaddr * a1, ipaddr * a2);
-int v4bitncmp(u_int32_t a1, u_int32_t a2, int bits);
+int v4bitncmp(unsigned int a1, unsigned int a2, int bits);
/* mac.c */
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: mac.h,v 1.1 1998/10/03 05:41:01 momjian Exp $
+ * $Id: mac.h,v 1.2 1998/10/04 15:31:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
unsigned char bits;
union
{
- u_int32_t ipv4_addr; /* network byte order */
+ unsigned int ipv4_addr; /* network byte order */
/* add IPV6 address type here */
} addr;
} ipaddr_struct;