]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
more careful gpst_esp_catch_probe()
authorDaniel Lenski <dlenski@gmail.com>
Wed, 10 Apr 2019 14:42:43 +0000 (17:42 +0300)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 10 Apr 2019 14:50:14 +0000 (17:50 +0300)
commit67f300eeae5c0ad6f23402e6bbe4295facffef2f
treee1c46bc6f1b41e2ea0716f26cb2ca96ca747fc2d
parent6487ee8763e1b6345718684909aca970befbc49d
more careful gpst_esp_catch_probe()

Previous version of gpst_esp_catch_probe would catch/filter *any* ping reply sent over the tunnel
from the "magical" ESP "gateway" address. (Heavy-handed scare quotes intentional.)

This may result in confusing behavior in some testing/debugging scenarios, as described in this thread:

    http://lists.infradead.org/pipermail/openconnect-devel/2019-April/005294.html

This patch modifies gpst_esp_catch_probe() to only catch ping replies if they also contain the
appropriate magic payload.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
gpst.c