PERFORCE change 122026 for review

Fredrik Lindberg fli at FreeBSD.org
Wed Jun 20 11:10:44 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=122026

Change 122026 by fli at fli_genesis on 2007/06/20 11:09:46

	Add a record database (for self-claimed records),
	a configuration file parser and a variable substitution system.
	The variable system allows the use of variables in the
	configuration file, such as $(hostname) or $(ifaddrs4).
	These variables are updated when the system changes state,
	and changes are propagated out among variable consumers. 
	The currently supported variables are hostname, ifname,
	ifaddr4, ifaddrs4, ifaddr6 and ifaddrs6, where ifaddrs{4,6}
	expands into all currently configured addresses on an interface
	while ifaddr{4,6} only expands into the first.
	
	The record database uses the variable system to create real
	records which can be used as responses to queries from other peers.
	Some variables expand into several data lines, the database record
	is aware of this and clones records and resources when needed.

Affected files ...

.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/dbrec.c#1 add
.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/parse.y#1 add
.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/token.l#1 add
.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/var.c#1 add
.. //depot/projects/soc2007/fli-mdns_sd/mdnsd/var.h#1 add

Differences ...


More information about the p4-projects mailing list