mtu 0.4.1

Obtain the local network interface MTU towards a given IP address.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/types.h>
#include <sys/socket.h>
#include <net/route.h>
#include <net/if.h>

/* Force bindgen to generate these types. Bindgen only emits Rust types for C
 * types it sees actually used in the translation unit; including the headers
 * alone is not enough. These dummy variable declarations cause bindgen to emit
 * the corresponding Rust types. The variables are never used at runtime. */
struct rt_msghdr __rt_msghdr;
struct rt_metrics __rt_metrics;
struct if_data __if_data;