Lines Matching refs:mtu
291 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument
297 ifr.ifr_mtu = mtu; in __set_device_mtu()
304 static void set_device_mtu(int fd, int mtu) in set_device_mtu() argument
311 __set_device_mtu(fd, cfg_ifname, mtu); in set_device_mtu()
313 if (val != mtu) in set_device_mtu()
340 unsigned int mtu; in get_path_mtu() local
343 vallen = sizeof(mtu); in get_path_mtu()
345 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu()
347 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); in get_path_mtu()
353 fprintf(stderr, "path mtu (read): %u\n", mtu); in get_path_mtu()
354 return mtu; in get_path_mtu()
358 static void set_route_mtu(int mtu, bool is_ipv4) in set_route_mtu() argument
418 *((int *)(RTA_DATA(rta))) = mtu; in set_route_mtu()
429 fprintf(stderr, "route mtu (test): %u\n", mtu); in set_route_mtu()