tf6GetPathMtu
Table of Contents >> IPv6 Programmer's Reference
| #include <trsocket.h> |
| int tf6GetPathMtu | ( |
| sockaddr_storage *destIpAddrPtr, | |
| int * pathMtuPtr | |
| ); |
Function Description
Retrieves the current Path MTU for the specified destination address. This path MTU does not take into account overhead added by IPsec, but does include protocol tunneling overhead.
Parameters
- destIpAddrPtr
- IPv6 address of the destination to get the Path MTU for.
- pathMtuPtr
- Set to the current IPv6 Path MTU upon return, if no error occurred.
Returns
- TM_ENOERROR
- IPv6 Path MTU successfully returned.
- TM_EINVAL
- Destination address is not an IPv6 address.
- TM_EINVAL
- There was in invalid argument. Possible causes include the destination address pointer or the Path MTU pointer is NULL or a route to the destination address could not be found.