ignore incoming keepalive packets
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 2 Oct 2008 11:03:01 +0000 (12:03 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 2 Oct 2008 11:03:01 +0000 (12:03 +0100)
dtls.c
ssl.c

diff --git a/dtls.c b/dtls.c
index e94fd9c..30e6905 100644 (file)
--- a/dtls.c
+++ b/dtls.c
@@ -273,6 +273,11 @@ int dtls_mainloop(struct anyconnect_info *vpninfo, int *timeout)
                                printf("Got DTLS DPD response\n");
                        break;
 
+               case AC_PKT_KEEPALIVE:
+                       if (verbose)
+                               printf("Got DTLS Keepalive\n");
+                       break;
+
                default:
                        fprintf(stderr, "Unknown DTLS packet type %02x\n", buf[0]);
                        vpninfo->quit_reason = "Unknown packet received";
diff --git a/ssl.c b/ssl.c
index 2a4a2f1..7801e03 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -572,6 +572,11 @@ int ssl_mainloop(struct anyconnect_info *vpninfo, int *timeout)
                                printf("Got CSTP DPD response\n");
                        continue;
 
+               case AC_PKT_KEEPALIVE:
+                       if (verbose)
+                               printf("Got CSTP Keepalive\n");
+                       continue;
+
                case AC_PKT_DATA:
                        if (verbose) {
                                printf("Received uncompressed data packet of %d bytes\n",