ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/conf.C
(Generate patch)

Comparing gvpe/src/conf.C (file contents):
Revision 1.9 by pcg, Wed Apr 2 05:14:59 2003 UTC vs.
Revision 1.11 by pcg, Wed Apr 2 21:43:44 2003 UTC

64 64
65const char *strprotocol (u8 protocol) 65const char *strprotocol (u8 protocol)
66{ 66{
67 if (protocol & PROT_IPv4 ) return "rawip"; 67 if (protocol & PROT_IPv4 ) return "rawip";
68 if (protocol & PROT_UDPv4) return "udp"; 68 if (protocol & PROT_UDPv4) return "udp";
69 if (protocol & PROT_TCPv4) return "tcp";
69 70
70 return "<unknown>"; 71 return "<unknown>";
71} 72}
72 73
73configuration::configuration () 74configuration::configuration ()
312 parse_bool (node->compress, "compress", true, false); 313 parse_bool (node->compress, "compress", true, false);
313 } 314 }
314 // all these bool options really really cost a lot of executable size! 315 // all these bool options really really cost a lot of executable size!
315 else if (!strcmp (var, "enable-tcp")) 316 else if (!strcmp (var, "enable-tcp"))
316 { 317 {
318#if ENABLE_TCP
317 u8 v; parse_bool (v, "enable-tcp" , PROT_TCPv4, 0); node->protocols = (node->protocols & ~PROT_TCPv4) | v; 319 u8 v; parse_bool (v, "enable-tcp" , PROT_TCPv4, 0); node->protocols = (node->protocols & ~PROT_TCPv4) | v;
320#endif
318 } 321 }
319 else if (!strcmp (var, "enable-udp")) 322 else if (!strcmp (var, "enable-udp"))
320 { 323 {
321 u8 v; parse_bool (v, "enable-udp" , PROT_UDPv4, 0); node->protocols = (node->protocols & ~PROT_UDPv4) | v; 324 u8 v; parse_bool (v, "enable-udp" , PROT_UDPv4, 0); node->protocols = (node->protocols & ~PROT_UDPv4) | v;
322 } 325 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines