X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fpmtu.h;fp=src%2Fpmtu.h;h=3e4c5ac67f4cb0945869addc8ec0f64d11be2255;hb=bc2e55e940e45748a49f1a7eb44b156917fca469;hp=0000000000000000000000000000000000000000;hpb=a582852c2b7e5a0c0d438d625a0445b4a74f607a;p=meshlink diff --git a/src/pmtu.h b/src/pmtu.h new file mode 100644 index 00000000..3e4c5ac6 --- /dev/null +++ b/src/pmtu.h @@ -0,0 +1,28 @@ +#ifndef MESHLINK_PMTU_H +#define MESHLINK_PMTU_H + +/* + pmtu.h -- header for pmtu.c + Copyright (C) 2020 Guus Sliepen + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +#define MIN_PROBE_SIZE 4 + +extern void keepalive(struct meshlink_handle *mesh, struct node_t *n, bool traffic); +extern void udp_probe_h(struct meshlink_handle *mesh, struct node_t *n, struct vpn_packet_t *packet, uint16_t len); + +#endif