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

Comparing gvpe/src/vpn.C (file contents):
Revision 1.61 by root, Fri Sep 16 18:08:03 2011 UTC vs.
Revision 1.63 by root, Tue Jan 17 21:38:11 2012 UTC

513vpn::send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos) 513vpn::send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos)
514{ 514{
515 switch (si.prot) 515 switch (si.prot)
516 { 516 {
517 case PROT_IPv4: 517 case PROT_IPv4:
518 return send_ipv4_packet (pkt, si, tos); 518 return send_ipv4_packet (pkt, si, tos);
519 519
520 case PROT_UDPv4: 520 case PROT_UDPv4:
521 return send_udpv4_packet (pkt, si, tos); 521 return send_udpv4_packet (pkt, si, tos);
522 522
523#if ENABLE_TCP 523#if ENABLE_TCP
524 case PROT_TCPv4: 524 case PROT_TCPv4:
525 return send_tcpv4_packet (pkt, si, tos); 525 return send_tcpv4_packet (pkt, si, tos);
526#endif 526#endif
527#if ENABLE_ICMP 527#if ENABLE_ICMP
528 case PROT_ICMPv4: 528 case PROT_ICMPv4:
529 return send_icmpv4_packet (pkt, si, tos); 529 return send_icmpv4_packet (pkt, si, tos);
530#endif 530#endif
531#if ENABLE_DNS 531#if ENABLE_DNS
532 case PROT_DNSv4: 532 case PROT_DNSv4:
533 return send_dnsv4_packet (pkt, si, tos); 533 return send_dnsv4_packet (pkt, si, tos);
534#endif 534#endif
535 default: 535 default:
536 slog (L_CRIT, _("%s: FATAL: trying to send packet with unsupported protocol."), (const char *)si); 536 slog (L_CRIT, _("%s: FATAL: trying to send packet with unsupported protocol."), (const char *)si);
537 } 537 }
538 538

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines