Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Discard all but Legacy IP packets on VPN transmit
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 1, 2009
1 parent 22a2287 commit f3e5061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cstp.c
Expand Up @@ -609,6 +609,10 @@ int cstp_mainloop(struct openconnect_info *vpninfo, int *timeout)
vpninfo->outgoing_queue = this->next;
vpninfo->outgoing_qlen--;

/* FIXME: Don't know how to handle IPv6 yet */
if (this->type != AF_INET)
continue;

if (vpninfo->deflate) {
unsigned char *adler;
int ret;
Expand Down
4 changes: 4 additions & 0 deletions dtls.c
Expand Up @@ -480,6 +480,10 @@ int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout)
vpninfo->outgoing_queue = this->next;
vpninfo->outgoing_qlen--;

/* FIXME: Don't know how to handle IPv6 yet */
if (this->type != AF_INET)
continue;

/* One byte of header */
this->hdr[7] = AC_PKT_DATA;

Expand Down

0 comments on commit f3e5061

Please sign in to comment.