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

Comparing gvpe/src/sockinfo.C (file contents):
Revision 1.11 by pcg, Sat Jan 17 16:01:59 2004 UTC vs.
Revision 1.12 by pcg, Fri Apr 2 14:42:45 2004 UTC

62sockinfo::set (const conf_node *conf, u8 prot_) 62sockinfo::set (const conf_node *conf, u8 prot_)
63{ 63{
64 set (conf->hostname, 64 set (conf->hostname,
65 prot_ == PROT_UDPv4 ? conf->udp_port 65 prot_ == PROT_UDPv4 ? conf->udp_port
66 : prot_ == PROT_TCPv4 ? conf->tcp_port 66 : prot_ == PROT_TCPv4 ? conf->tcp_port
67 : prot_ == PROT_DNSv4 ? conf->dns_port
67 : 0, 68 : 0,
68 prot_); 69 prot_);
69} 70}
70 71
71const sockaddr * 72const sockaddr *
118 if (conf 119 if (conf
119 && prot & PROTv4 120 && prot & PROTv4
120 && conf->protocols & PROT_TCPv4 121 && conf->protocols & PROT_TCPv4
121 && conf->tcp_port) 122 && conf->tcp_port)
122 protocols |= PROT_TCPv4; 123 protocols |= PROT_TCPv4;
124
125 if (conf
126 && prot & PROTv4
127 && conf->protocols & PROT_DNSv4)
128 protocols |= PROT_DNSv4;
123 129
124 return protocols; 130 return protocols;
125} 131}
126 132
127bool 133bool

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines