/************************************************************************/
/*	Routing Protocol Simulator	Release 1.0	1994/3/17	*/
/*                                              1.21    1997/2/10       */
/*									*/
/*		module 	: common routine	      			*/
/*		file	: rps_if.h	       				*/
/*									*/
/*   Copyright (c) 1994-1997 by Systems Development Laboratory Hitachi,	*/
/*   Ltd. All rights reserved.						*/
/*----------------------------------------------------------------------*/
/*	UPDATE HISTORY							*/
/*									*/
/************************************************************************/

struct if_addr {
    struct in_addr *addr;
    struct in_addr *net;
    struct in_addr *net_mask;
    struct in_addr *subnet;
    struct in_addr *subnet_mask;
    int state;
};

#define IF_ADDR(if_addr)	((if_addr)->addr->s_addr)
#define IF_NET(if_addr)		((if_addr)->net->s_addr)
#define IF_NETMASK(if_addr)	((if_addr)->net_mask->s_addr)
#define IF_SUBNET(if_addr)	((if_addr)->subnet->s_addr)
#define IF_SUBMASK(fi_addr)	((if_addr)->subnet_mask->s_addr)
