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

Comparing gvpe/src/vpn_dns.C (file contents):
Revision 1.38 by pcg, Tue Apr 19 04:23:38 2005 UTC vs.
Revision 1.40 by pcg, Sat Jul 9 20:29:29 2005 UTC

14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with gvpe; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/ 20*/
21 21
22// TODO: EDNS0 option to increase dns mtu? 22// TODO: EDNS0 option to increase dns mtu?
23// TODO: re-write dns packet parsing/creation using a safe mem-buffer 23// TODO: re-write dns packet parsing/creation using a safe mem-buffer
24// to ensure no buffer overflows or similar problems. 24// to ensure no buffer overflows or similar problems.
461 r4 = r5 = r6 = r7 = 0; 461 r4 = r5 = r6 = r7 = 0;
462} 462}
463 463
464bool dns_cfg::valid () 464bool dns_cfg::valid ()
465{ 465{
466 // although the protocol itself allows for some configurability,
467 // only the following encoding/decoding settings are implemented.
466 return id1 == 'G' 468 return id1 == 'G'
467 && id2 == 'V' 469 && id2 == 'V'
468 && id3 == 'P' 470 && id3 == 'P'
469 && id4 == 'E' 471 && id4 == 'E'
470 && seq_cdc == 26 472 && seq_cdc == 26

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines