plan 9 kernel history: overview | file list | diff list

1997/0401/port/netif.h (diff list | history)

1997/0327/sys/src/9/port/netif.h:1,41997/0401/sys/src/9/port/netif.h:1,5 (short | long | prev | next)
Add Netaddr], Netif.maddr, Netif.multicast.
rsc Fri Mar 4 12:44:25 2005
1993/0525    
typedef struct Etherpkt	Etherpkt; 
1997/0401    
typedef struct Netaddr	Netaddr; 
1993/0525    
typedef struct Netfile	Netfile; 
typedef struct Netif	Netif; 
 
1997/0327/sys/src/9/port/netif.h:41,461997/0401/sys/src/9/port/netif.h:42,57
1993/0525    
}; 
 
/* 
1997/0401    
 *  a network address 
 */ 
struct Netaddr 
{ 
	Netaddr	*next; 
	char	*addr; 
	int	ref; 
}; 
 
/* 
1993/0525    
 *  a network interface 
 */ 
struct Netif 
1997/0327/sys/src/9/port/netif.h:57,621997/0401/sys/src/9/port/netif.h:68,74
1993/0525    
	int	alen;			/* address length */ 
	uchar	addr[Nmaxaddr]; 
	uchar	bcast[Nmaxaddr]; 
1997/0401    
	Netaddr	*maddr;			/* multicast addresses */ 
1994/0629    
	int	prom;			/* number of promiscuous opens */ 
	int	all;			/* number of -1 multiplexors */ 
1993/0525    
 
1997/0327/sys/src/9/port/netif.h:74,791997/0401/sys/src/9/port/netif.h:86,92
1993/0525    
	/* routines for touching the hardware */ 
	void	*arg; 
	void	(*promiscuous)(void*, int); 
1997/0401    
	void	(*multicast)(void*, char*, int); 
1993/0525    
}; 
 
void	netifinit(Netif*, char*, int, ulong); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)