code: func calculateMTU(mtu uint32) uint32 {
  	if mtu > MaxTotalSize {
  		mtu = MaxTotalSize
  	}
  	return mtu - header.IPv4MinimumSize
  }
docs: // calculateMTU calculates the network-layer payload MTU based on the link-layer
  // payload mtu.