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

Comparing gvpe/src/conf.h (file contents):
Revision 1.34 by pcg, Thu Aug 7 17:54:26 2008 UTC vs.
Revision 1.35 by pcg, Sun Aug 10 01:34:36 2008 UTC

95 vector<const char *> allow_direct; 95 vector<const char *> allow_direct;
96 vector<const char *> deny_direct; 96 vector<const char *> deny_direct;
97 97
98 u32 routerprio; 98 u32 routerprio;
99 99
100 u8 connectable_protocols () const
101 {
102 u8 protocols = this->protocols;
103
104 // mask out endpoints we can't connect to
105 if (!udp_port) protocols &= ~PROT_UDPv4;
106 if (!tcp_port) protocols &= ~PROT_TCPv4;
107 if (!dns_port) protocols &= ~PROT_DNSv4;
108
109 return protocols;
110 }
111
100 bool can_direct (struct conf_node *other); 112 bool may_direct (struct conf_node *other);
113 void finalise ();
101 114
102 void print (); 115 void print ();
103 116
104 ~conf_node (); 117 ~conf_node ();
105}; 118};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines